/* ============================================================
   Parichaya Vedika — Modern visual system
   Tokens, typography, shadows, motion, then component styles.
   Fonts loaded via Google Fonts CDN in the layout <head>.
   ============================================================ */

/* Accessibility: skip-to-content link (visible only when focused) */
.skip-link {
  position: absolute; top: -100px; left: 8px; z-index: 2000;
  background: #8b1538; color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 8px; font-weight: 600;
  text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,.2);
  transition: top .15s ease;
}
.skip-link:focus { top: 0; outline: 3px solid #c9a14a; outline-offset: 2px; color: #fff; }

/* Skip-link target: clear the sticky navbar and avoid an ugly focus ring
   on the <main> wrapper itself (focus is just a stepping-stone for the
   next Tab — the user will tab into the first real link inside). */
#main { scroll-margin-top: 84px; }
#main:focus { outline: none; }

/* Treat the "More" dropdown button like a nav link */
.navbar-pv .nav-item .dropdown-toggle[type="button"] {
  background: transparent; border: 0;
}

:root {
  /* Brand palette */
  --pv-primary:        #8b1538;
  --pv-primary-light:  #b8244a;
  --pv-primary-dark:   #5e0e26;
  --pv-gold:           #c9a14a;
  --pv-gold-light:     #e6c577;
  --pv-gold-soft:      #f3e3b8;

  /* Neutrals */
  --pv-text:           #1f1219;
  --pv-text-soft:      #5a4853;
  --pv-muted:          #7d7a82;
  --pv-bg:             #fbf7f2;
  --pv-bg-soft:        #fdf3ea;
  --pv-line:           rgba(31, 18, 25, 0.08);
  --pv-line-strong:    rgba(31, 18, 25, 0.14);

  /* Layered shadows (Tailwind-ish + a brand-tinted one) */
  --shadow-xs:  0 1px 2px rgba(31, 18, 25, 0.05);
  --shadow-sm:  0 1px 3px rgba(31, 18, 25, 0.06), 0 1px 2px rgba(31, 18, 25, 0.04);
  --shadow-md:  0 4px 6px -1px rgba(31, 18, 25, 0.08), 0 2px 4px -2px rgba(31, 18, 25, 0.05);
  --shadow-lg:  0 10px 15px -3px rgba(31, 18, 25, 0.08), 0 4px 6px -4px rgba(31, 18, 25, 0.05);
  --shadow-xl:  0 20px 25px -5px rgba(31, 18, 25, 0.10), 0 8px 10px -6px rgba(31, 18, 25, 0.06);
  --shadow-brand: 0 12px 32px -8px rgba(139, 21, 56, 0.22);

  /* Geometry */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 140ms;
  --t-med:  220ms;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--pv-bg);
  color: var(--pv-text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  font-feature-settings: "cv11", "ss01", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }

::selection { background: rgba(201, 161, 74, 0.35); color: var(--pv-primary-dark); }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--pv-text);
  font-feature-settings: "lnum", "kern", "liga";
}
h1 { font-size: clamp(2.1rem, 4.2vw, 2.9rem); line-height: 1.1;  letter-spacing: -0.022em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); line-height: 1.15; letter-spacing: -0.018em; }
h3 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -0.012em; }
h4 { font-size: 1.22rem; line-height: 1.3;  letter-spacing: -0.008em; font-weight: 600; }
h5 { font-size: 1.05rem; line-height: 1.35; font-weight: 600; font-family: 'Inter', sans-serif; letter-spacing: -0.005em; }
h6 { font-size: 0.85rem; font-weight: 600;  font-family: 'Inter', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pv-text-soft); }

/* Tabular figures for stat-style numbers (so 1,234 / 12,500 align cleanly) */
.stat-num, .price, .pd-price-row .price, .plan-card .price, .hero .stat-num {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum", "lnum";
}

/* Italic accent utility — true italic Playfair, not synthesized */
.italic-accent, em.accent {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

a { color: var(--pv-primary); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--pv-primary-dark); }

code { background: #f4ece4; color: var(--pv-primary-dark); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.88em; }

.section-title { font-family: 'Playfair Display', Georgia, serif; color: var(--pv-primary-dark); font-weight: 700; }
.section-subtitle { color: var(--pv-muted); }
.divider-gold { height: 3px; width: 56px; background: linear-gradient(90deg, var(--pv-gold), var(--pv-gold-light)); border-radius: 99px; margin: 12px 0; }

.text-pv-primary { color: var(--pv-primary) !important; }
.text-pv-dark    { color: var(--pv-primary-dark) !important; }
.text-gold       { color: var(--pv-gold) !important; }
.bg-pv-light     { background: var(--pv-bg-soft); }

/* ============================================================
   Navbar (public)
   ============================================================ */
.navbar-pv {
  background: linear-gradient(135deg, var(--pv-primary-dark) 0%, var(--pv-primary) 55%, var(--pv-primary-light) 130%);
  backdrop-filter: saturate(120%) blur(8px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.10);
  padding: 0.65rem 0;
}
.navbar-pv .navbar-brand,
.navbar-pv .nav-link,
.navbar-pv .navbar-text { color: #fff !important; }
.navbar-pv .nav-link {
  font-weight: 500; font-size: 0.94rem; padding: 0.55rem 0.85rem;
  border-radius: 8px; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.navbar-pv .nav-link:hover { color: var(--pv-gold-light) !important; background: rgba(255, 255, 255, 0.06); }
.navbar-pv .nav-link.active { color: var(--pv-gold-light) !important; background: rgba(0, 0, 0, 0.18); }
.navbar-pv .dropdown-menu {
  border: 0; border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 6px; margin-top: 10px;
}
.navbar-pv .dropdown-item {
  border-radius: 8px; padding: 8px 12px; font-size: 0.9rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.navbar-pv .dropdown-item:hover { background: var(--pv-bg-soft); color: var(--pv-primary-dark); }

/* 3-zone navbar layout: logo (left) — nav-center (centered) — nav-right (right) */
@media (min-width: 992px) {
  .navbar-pv .container { position: relative; }
  .navbar-pv .navbar-collapse { position: static !important; }
  .navbar-pv .nav-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    flex-direction: row;
    gap: 4px;
    z-index: 1;
  }
  .navbar-pv .nav-right { z-index: 2; }
}

/* Mobile: collapse menu stacks — center nav becomes a normal stacked list */
@media (max-width: 991.98px) {
  .navbar-pv .nav-center,
  .navbar-pv .nav-right { width: 100%; }
  .navbar-pv .nav-center { margin-bottom: 8px; }
}

/* =============================================
   Brand wordmark — text-only "Parichaya Vedika"
   ============================================= */
.brand-mark {
  display: inline-flex; flex-direction: column;
  text-decoration: none; line-height: 1;
}
.brand-mark:hover { text-decoration: none; }

.brand-mark .pv-wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem; font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1;
}
.brand-mark .pv-wordmark .pv-accent {
  color: var(--pv-gold-light);
  font-style: italic;
  margin-left: 2px;
}

.brand-mark .pv-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.36em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
}

/* Light surfaces (footer brand, auth card, etc.) */
.brand-mark--light .pv-wordmark { color: var(--pv-primary-dark); }
.brand-mark--light .pv-wordmark .pv-accent { color: var(--pv-gold); }
.brand-mark--light .pv-tagline { color: var(--pv-muted); }

/* Variants */
.brand-mark--compact .pv-tagline { display: none; }
.brand-mark--compact .pv-wordmark { font-size: 1.2rem; }

.brand-mark--lg .pv-wordmark { font-size: 2.4rem; letter-spacing: 0.6px; }
.brand-mark--lg .pv-tagline  { font-size: 0.72rem; letter-spacing: 0.42em; margin-top: 8px; }

/* Legacy fallback */
.brand-mark .pv-dot { color: var(--pv-gold-light); margin: 0 4px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  border-radius: var(--r-md);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.55rem 1.15rem;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 0.75rem 1.5rem; border-radius: 14px; font-size: 1rem; }
.btn-sm { padding: 0.35rem 0.75rem; border-radius: 9px; font-size: 0.85rem; }

.btn-pv {
  background: linear-gradient(135deg, var(--pv-primary) 0%, var(--pv-primary-light) 100%);
  color: #fff; border: 0; box-shadow: var(--shadow-sm);
}
.btn-pv:hover {
  background: linear-gradient(135deg, var(--pv-primary-dark) 0%, var(--pv-primary) 100%);
  color: #fff; box-shadow: var(--shadow-brand);
}
.btn-pv:focus-visible { outline: 3px solid rgba(139, 21, 56, 0.25); outline-offset: 2px; }

.btn-pv-outline {
  border: 1.5px solid var(--pv-primary); color: var(--pv-primary); background: transparent;
}
.btn-pv-outline:hover { background: var(--pv-primary); color: #fff; box-shadow: var(--shadow-brand); }

.btn-gold {
  background: linear-gradient(135deg, var(--pv-gold) 0%, var(--pv-gold-light) 100%);
  color: var(--pv-text); border: 0; box-shadow: var(--shadow-sm);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--pv-gold-light) 0%, #f1d999 100%);
  color: var(--pv-text); box-shadow: 0 10px 24px -8px rgba(201, 161, 74, 0.55);
}

.btn-outline-secondary { border-color: var(--pv-line-strong); color: var(--pv-text-soft); }
.btn-outline-secondary:hover { background: var(--pv-bg-soft); border-color: var(--pv-primary); color: var(--pv-primary-dark); }

/* ============================================================
   Forms
   ============================================================ */
.form-control, .form-select {
  border: 1.5px solid var(--pv-line);
  border-radius: var(--r-md);
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}
.form-control:focus, .form-select:focus {
  border-color: var(--pv-primary-light);
  box-shadow: 0 0 0 4px rgba(139, 21, 56, 0.12);
  outline: 0;
}
.form-control::placeholder { color: #aaa3a8; }
.form-control-lg, .form-select-lg { padding: 0.75rem 1rem; font-size: 1rem; border-radius: 14px; }
.form-pv label, .form-label { font-weight: 600; color: var(--pv-text); font-size: 0.85rem; margin-bottom: 0.35rem; }
.input-group-text { background: #fff; border: 1.5px solid var(--pv-line); }

.form-check-input:checked {
  background-color: var(--pv-primary);
  border-color: var(--pv-primary);
}
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.15); border-color: var(--pv-primary-light); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background-color: var(--pv-primary-dark);
  background-image:
    radial-gradient(1200px 500px at 80% -20%, rgba(201, 161, 74, 0.18), transparent 60%),
    linear-gradient(180deg,
      var(--pv-primary-dark) 0%,
      #6d1130 25%,
      var(--pv-primary) 55%,
      #a01f44 80%,
      var(--pv-primary-light) 100%);
  color: #fff;
  padding: 110px 0 120px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: auto 0 -1px 0; height: 60px;
  background: linear-gradient(180deg, transparent, var(--pv-bg));
  pointer-events: none;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.hero .lead { color: #f6e1c4; font-size: 1.1rem; max-width: 640px; margin: 1.2rem auto 0; }
.hero .stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--pv-gold-light); font-size: 2rem; font-weight: 700;
}
.hero .stat-lbl { color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pv-gold-light); margin-bottom: 1rem;
}

/* Unified subpage hero — same palette as .hero, shorter, fades into body.
   Centered by default everywhere so every subpage looks identical to the home hero. */
.page-hero {
  position: relative;
  margin-top: -1.5rem;
  margin-left: calc(-1 * (100vw - 100%) / 2);
  margin-right: calc(-1 * (100vw - 100%) / 2);
  width: 100vw; max-width: 100vw;
  background-color: var(--pv-primary-dark);
  background-image:
    radial-gradient(900px 360px at 50% -10%, rgba(201, 161, 74, 0.22), transparent 60%),
    linear-gradient(180deg,
      var(--pv-primary-dark) 0%,
      #6d1130 25%,
      var(--pv-primary) 55%,
      #a01f44 80%,
      var(--pv-primary-light) 100%);
  color: #fff;
  padding: 56px 0 72px;
  overflow: hidden;
  margin-bottom: 32px;
  text-align: center;
}
.page-hero::before {
  content: '\0950';
  position: absolute; top: 18px; right: 38px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 7rem; line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none; user-select: none;
}
.page-hero::after {
  content: '';
  position: absolute; inset: auto 0 -1px 0; height: 110px;
  background: linear-gradient(180deg, transparent, var(--pv-bg));
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }

.page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #fff; font-weight: 700; letter-spacing: -0.01em;
  font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15;
  margin: 0 auto 12px; max-width: 820px;
}
.page-hero .lead,
.page-hero .page-hero-sub {
  color: #f6e1c4; font-size: 1.05rem; line-height: 1.55;
  max-width: 720px; margin: 0 auto;
}
.page-hero .page-hero-crumbs {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 14px;
  justify-content: center;
}
.page-hero .page-hero-crumbs a { color: var(--pv-gold-light); text-decoration: none; }
.page-hero .page-hero-crumbs a:hover { color: #fff; }
.page-hero .page-hero-crumbs .sep { opacity: 0.45; }
.page-hero .page-hero-meta {
  display: flex; flex-wrap: wrap; gap: 22px;
  justify-content: center;
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.78);
  padding-top: 16px; margin: 18px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 720px;
}
.page-hero .page-hero-meta i { color: var(--pv-gold-light); margin-right: 6px; }
@media (max-width: 768px) {
  .page-hero { padding: 40px 0 56px; }
  .page-hero::before { font-size: 5rem; top: 12px; right: 16px; }
}

/* ============================================================
   Cards
   ============================================================ */
.card-pv {
  border: 1px solid var(--pv-line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}
.card-pv:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 12px 32px -16px rgba(139, 21, 56, 0.15);
  border-color: var(--pv-line-strong);
}

.feature-card {
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--pv-line);
  box-shadow: var(--shadow-sm);
  padding: 28px 22px;
  text-align: center;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  height: 100%;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card .feature-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--pv-primary), var(--pv-primary-light));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
  box-shadow: 0 8px 20px -6px rgba(139, 21, 56, 0.4);
}
.feature-card h5 { color: var(--pv-text); margin-bottom: 8px; }
.feature-card p { color: var(--pv-muted); font-size: 0.9rem; margin: 0; }

.step-tile {
  text-align: center; padding: 8px;
}
.step-tile .step-circle {
  width: 78px; height: 78px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pv-primary), var(--pv-primary-light));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 12px 24px -10px rgba(139, 21, 56, 0.45);
  position: relative;
}
.step-tile .step-num {
  position: absolute; bottom: -6px; right: -6px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--pv-gold); color: var(--pv-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
  box-shadow: var(--shadow-md);
}
.step-tile h5 { margin-top: 16px; }
.step-tile p { color: var(--pv-muted); font-size: 0.88rem; }

/* ============================================================
   Profile cards (search results, recommendations)
   ============================================================ */
.profile-card {
  border-radius: var(--r-lg); overflow: hidden; background: #fff;
  border: 1px solid var(--pv-line); box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.profile-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.profile-card .photo-wrap {
  position: relative; height: 220px;
  background: linear-gradient(135deg, var(--pv-primary), var(--pv-primary-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 3rem; font-weight: 700; overflow: hidden;
}
.profile-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.profile-card .badge-verified {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255, 255, 255, 0.95); color: var(--pv-primary-dark);
  padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.profile-card .body { padding: 16px; }
.profile-card h5 { margin-bottom: 4px; color: var(--pv-primary-dark); }
.profile-card .meta { font-size: 0.85rem; color: var(--pv-muted); }
.profile-card .actions { margin-top: 12px; display: flex; gap: 6px; }

/* ============================================================
   Plans
   ============================================================ */
.plan-card {
  border: 1px solid var(--pv-line);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  height: 100%;
  position: relative;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card.popular {
  border: 2px solid var(--pv-gold);
  background: linear-gradient(180deg, #fff, #fffaf0);
  box-shadow: 0 18px 40px -16px rgba(201, 161, 74, 0.35);
}
.plan-card.popular::before {
  content: 'MOST POPULAR';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pv-gold), var(--pv-gold-light));
  color: var(--pv-text); padding: 5px 16px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  box-shadow: var(--shadow-md);
}
.plan-card h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; margin: 0 0 4px; }
.plan-card .price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem; color: var(--pv-primary-dark); font-weight: 700;
  margin: 8px 0 4px;
}
.plan-card ul { list-style: none; padding: 0; margin: 18px 0; }
.plan-card li { padding: 8px 0; border-bottom: 1px dashed var(--pv-line); font-size: 0.92rem; }
.plan-card li:last-child { border-bottom: 0; }
.plan-card li i { margin-right: 6px; }

/* ============================================================
   Auth (login / register)
   ============================================================ */
.auth-wrap {
  min-height: calc(100vh - 80px);
  display: flex; align-items: center;
  padding: 40px 0;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(201, 161, 74, 0.14), transparent 60%),
    radial-gradient(700px 360px at 10% 110%, rgba(139, 21, 56, 0.07), transparent 60%),
    linear-gradient(180deg, var(--pv-bg-soft), var(--pv-bg));
}
.auth-card {
  background: #fff;
  padding: 40px 36px;
  border-radius: var(--r-xl);
  border: 1px solid var(--pv-line);
  box-shadow: var(--shadow-xl);
}
.auth-card h2 { font-family: 'Playfair Display', Georgia, serif; color: var(--pv-primary-dark); }
.auth-card .form-control-lg { padding: 0.85rem 1rem; }

/* ============================================================
   Dashboard side menu (user)
   ============================================================ */
.dashboard-side {
  background: #fff;
  border: 1px solid var(--pv-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  position: sticky; top: 86px;
}
.dashboard-side .menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--pv-text);
  font-weight: 500; font-size: 0.93rem;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.dashboard-side .menu a:hover,
.dashboard-side .menu a.active {
  background: var(--pv-bg-soft);
  color: var(--pv-primary-dark);
}

/* ============================================================
   Chat
   ============================================================ */
.chat-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 16px; min-height: 70vh; }
.chat-list, .chat-thread {
  background: #fff;
  border: 1px solid var(--pv-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.chat-list .item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--pv-line);
  cursor: pointer;
  display: flex; gap: 12px; align-items: center;
  transition: background var(--t-fast);
}
.chat-list .item:hover,
.chat-list .item.active { background: var(--pv-bg-soft); }
.chat-list .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pv-primary), var(--pv-primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.chat-thread { display: flex; flex-direction: column; }
.chat-thread .header { padding: 14px 18px; border-bottom: 1px solid var(--pv-line); }
.chat-thread .messages { flex: 1; padding: 18px; overflow-y: auto; max-height: 60vh; }
.chat-thread .composer { border-top: 1px solid var(--pv-line); padding: 10px; display: flex; gap: 8px; }
.bubble { padding: 10px 14px; border-radius: 16px; margin-bottom: 6px; max-width: 70%; line-height: 1.4; }
.bubble.mine {
  background: linear-gradient(135deg, var(--pv-primary), var(--pv-primary-light));
  color: #fff; align-self: flex-end; margin-left: auto;
  border-bottom-right-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.bubble.theirs {
  background: #f4ece4; color: var(--pv-text);
  border-bottom-left-radius: 4px;
}
.msg-row { display: flex; flex-direction: column; margin-bottom: 6px; }
.msg-row.mine { align-items: flex-end; }
.msg-time { font-size: 0.7rem; color: var(--pv-muted); }

/* ============================================================
   Footer
   ============================================================ */
.footer-pv {
  background: linear-gradient(180deg, var(--pv-primary-dark), #4a0a1d);
  color: #f4e6c2;
  padding: 56px 0 28px;
  margin-top: 80px;
}
.footer-pv h6 {
  color: var(--pv-gold-light);
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.footer-pv a { color: #f4e6c2; text-decoration: none; transition: color var(--t-fast); }
.footer-pv a:hover { color: var(--pv-gold-light); }
.footer-pv .small { font-size: 0.85rem; }
.footer-social { display: inline-flex; gap: 12px; }
.footer-social a {
  /* WCAG / Google touch-target: ≥ 44×44 px. */
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.footer-social a:hover { background: var(--pv-gold); color: var(--pv-text); transform: translateY(-2px); }

/* ============================================================
   Alerts
   ============================================================ */
.alert {
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 0.85rem 1.05rem;
  box-shadow: var(--shadow-xs);
}
.alert-success { background: #ecf6ee; color: #1e5a26; border-color: #c7e2cd; }
.alert-danger  { background: #fdeceb; color: #842029; border-color: #f4c8c5; }
.alert-warning { background: #fdf4dd; color: #6b4f00; border-color: #f0dfa6; }
.alert-info    { background: #eaf3fb; color: #14507c; border-color: #c3dcef; }

/* ============================================================
   Misc utilities
   ============================================================ */
.empty-state { text-align: center; padding: 40px 20px; color: var(--pv-muted); }
.shadow-brand { box-shadow: var(--shadow-brand) !important; }

/* Scrollbar polish (Webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(31, 18, 25, 0.18);
  border-radius: 99px; border: 2px solid var(--pv-bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(139, 21, 56, 0.35); }

/* Subtle reveal animation for stat numbers */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 480ms var(--ease) both; }

/* Responsive tweaks */
@media (max-width: 992px) {
  .chat-wrap { grid-template-columns: 1fr; }
  .dashboard-side { position: static; }
  .hero { padding: 80px 0 100px; }
}
@media (max-width: 576px) {
  body { font-size: 14.5px; }
  .auth-card { padding: 28px 22px; border-radius: 18px; }
  .plan-card { padding: 24px 20px; }
}
