/* ============================================================
 * rc-dashboard-v2.css
 * Phase 3a: tokens + layout + header card + completion card
 * Gated by body.dashv2-active class (set inline in profile.blade.php)
 * Brand source: RateCrest_Brand_Guide.pdf (read Session 24)
 * ============================================================ */

/* ---------- 1. Design tokens ---------- */
body.dashv2-active {
  /* Brand primaries (canonical — referenced from existing rc-signin-v2.css :root) */
  --rc-prof-royal: #15006D;
  --rc-prof-aurora: #3A43D1;
  --rc-prof-aurora-hover: #2E36B5;
  --rc-prof-mint: #5BE6C9;
  --rc-prof-mint-hover: #45CFB0;
  --rc-prof-tint-aurora: #EFF0FB;
  --rc-prof-tint-mint: #EAFBF6;

  /* Tonal stops derived from brand guide page 23 */
  --rc-prof-royal-soft: rgba(21, 0, 109, 0.04);
  --rc-prof-royal-mid: rgba(21, 0, 109, 0.10);
  --rc-prof-royal-strong: rgba(21, 0, 109, 0.16);
  --rc-prof-aurora-tint-hover: #E0E2F7;
  --rc-prof-mint-tint-hover: #D5F5EC;

  /* Secondary brand (sparingly — Trust Level only) */
  --rc-prof-gold: #FFC300;
  --rc-prof-gold-tint: #FFF6DD;

  /* Surfaces */
  --rc-prof-canvas: #F7F7F9;
  --rc-prof-card: #FFFFFF;
  --rc-prof-border: #E8E8EE;

  /* Text */
  --rc-prof-text-primary: var(--rc-prof-royal);
  --rc-prof-text-secondary: #5A5A6E;
  --rc-prof-text-muted: #8A8A9A;

  /* Functional UI */
  --rc-prof-error: #D85A30;
  --rc-prof-warning: #BA7517;
  --rc-prof-error-tint: #FBEDE7;

  /* Type stack — Neue Montreal first, Inter fallback (matches metrics) */
  --rc-prof-font: "Neue Montreal", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type sizes (1.2 ratio per brand guide p28) */
  --rc-prof-fs-caption: 12px;
  --rc-prof-fs-small: 14px;
  --rc-prof-fs-body: 16px;
  --rc-prof-fs-body-lg: 18px;
  --rc-prof-fs-h4: 20px;
  --rc-prof-fs-h3: 24px;
  --rc-prof-fs-h2: 32px;

  /* Spacing (base 8) */
  --rc-prof-s-1: 4px;
  --rc-prof-s-2: 8px;
  --rc-prof-s-3: 12px;
  --rc-prof-s-4: 16px;
  --rc-prof-s-5: 24px;
  --rc-prof-s-6: 32px;
  --rc-prof-s-7: 48px;

  /* Radii */
  --rc-prof-r-xs: 4px;
  --rc-prof-r-sm: 8px;
  --rc-prof-r-md: 12px;
  --rc-prof-r-lg: 16px;
  --rc-prof-r-full: 9999px;

  /* Shadows (Royal-tinted, brand-cohesive) */
  --rc-prof-shadow-sm: 0 1px 2px rgba(21, 0, 109, 0.04), 0 0 0 1px rgba(21, 0, 109, 0.04);
  --rc-prof-shadow-md: 0 4px 12px rgba(21, 0, 109, 0.06), 0 0 0 1px rgba(21, 0, 109, 0.04);
  --rc-prof-shadow-lg: 0 16px 40px rgba(21, 0, 109, 0.12), 0 0 0 1px rgba(21, 0, 109, 0.06);

  /* Motion */
  --rc-prof-dur-instant: 100ms;
  --rc-prof-dur-fast: 200ms;
  --rc-prof-dur-normal: 300ms;
  --rc-prof-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --rc-prof-ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --rc-prof-ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 2. Page canvas ---------- */
body.dashv2-active {
  background: var(--rc-prof-canvas);
}

body.dashv2-active .rc-prof,
body.dashv2-active .rc-prof * {
  font-family: var(--rc-prof-font);
  letter-spacing: -0.01em;
}

body.dashv2-active .rc-prof p,
body.dashv2-active .rc-prof span,
body.dashv2-active .rc-prof a,
body.dashv2-active .rc-prof button,
body.dashv2-active .rc-prof input,
body.dashv2-active .rc-prof textarea,
body.dashv2-active .rc-prof select {
  letter-spacing: -0.011em;
}

/* ---------- 3. Layout primitives ---------- */
body.dashv2-active .rc-prof-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--rc-prof-s-5);
}

body.dashv2-active .rc-prof-page {
  padding-top: var(--rc-prof-s-6);
  padding-bottom: var(--rc-prof-s-7);
}

body.dashv2-active .rc-prof-breadcrumb {
  font-size: var(--rc-prof-fs-small);
  color: var(--rc-prof-text-muted);
  margin-bottom: var(--rc-prof-s-4);
}

body.dashv2-active .rc-prof-breadcrumb a {
  color: var(--rc-prof-text-secondary);
  text-decoration: none;
  transition: color var(--rc-prof-dur-instant) linear;
}

body.dashv2-active .rc-prof-breadcrumb a:hover {
  color: var(--rc-prof-aurora);
}

body.dashv2-active .rc-prof-breadcrumb .sep {
  margin: 0 var(--rc-prof-s-2);
  color: var(--rc-prof-text-muted);
}

/* ---------- 4. Header section (two-column on desktop) ---------- */
body.dashv2-active .rc-prof-header-row {
  display: flex;
  flex-direction: row;
  gap: var(--rc-prof-s-5);
  align-items: stretch;
}

body.dashv2-active .rc-prof-header {
  flex: 1 1 auto;
  background: var(--rc-prof-card);
  border-radius: var(--rc-prof-r-lg);
  box-shadow: var(--rc-prof-shadow-sm);
  padding: var(--rc-prof-s-6);
  display: flex;
  gap: var(--rc-prof-s-5);
  align-items: flex-start;
}

body.dashv2-active .rc-prof-header__avatar-wrap {
  flex: 0 0 auto;
  position: relative;
}

body.dashv2-active .rc-prof-header__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--rc-prof-royal);
  color: #fff;
  font-size: 32px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 4px #fff, 0 1px 4px rgba(21, 0, 109, 0.08);
}

body.dashv2-active .rc-prof-header__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.dashv2-active .rc-prof-header__kyc-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(20%, 20%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rc-prof-mint);
  color: #fff;
  border-radius: 50%;
  border: 3px solid #fff;
  font-size: 12px;
}

body.dashv2-active .rc-prof-header__main {
  flex: 1 1 auto;
  min-width: 0;
}

body.dashv2-active .rc-prof-header__namerow {
  display: flex;
  align-items: center;
  gap: var(--rc-prof-s-3);
  flex-wrap: wrap;
  margin-bottom: var(--rc-prof-s-3);
}

body.dashv2-active .rc-prof-header__name {
  font-size: var(--rc-prof-fs-h2);
  font-weight: 700;
  line-height: 1;
  color: var(--rc-prof-text-primary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Verified Member pill (KYC verified) */
body.dashv2-active .rc-prof-pill--verified {
  display: inline-flex;
  align-items: center;
  gap: var(--rc-prof-s-2);
  padding: 6px 12px 6px 8px;
  background: var(--rc-prof-mint);
  color: var(--rc-prof-royal);
  font-size: var(--rc-prof-fs-small);
  font-weight: 500;
  border-radius: var(--rc-prof-r-full);
  text-decoration: none;
  transition: background-color var(--rc-prof-dur-instant) linear;
}

body.dashv2-active .rc-prof-pill--verified:hover {
  background: var(--rc-prof-mint-tint-hover);
  color: var(--rc-prof-royal);
}

body.dashv2-active .rc-prof-pill--verified .badge-icon {
  width: 16px;
  height: 16px;
}

/* Get Verified pill (NOT KYC, owner only) */
body.dashv2-active .rc-prof-pill--get-verified {
  display: inline-flex;
  align-items: center;
  gap: var(--rc-prof-s-2);
  padding: 6px 12px;
  background: transparent;
  color: var(--rc-prof-text-secondary);
  font-size: var(--rc-prof-fs-small);
  font-weight: 500;
  border-radius: var(--rc-prof-r-full);
  border: 1.5px solid var(--rc-prof-royal-strong);
  text-decoration: none;
  transition: background-color var(--rc-prof-dur-instant) linear,
              border-color var(--rc-prof-dur-instant) linear,
              color var(--rc-prof-dur-instant) linear;
}

body.dashv2-active .rc-prof-pill--get-verified:hover {
  background: var(--rc-prof-royal-soft);
  border-color: var(--rc-prof-aurora);
  color: var(--rc-prof-aurora);
}

/* Meta row (member-since + location) */
body.dashv2-active .rc-prof-header__meta {
  display: flex;
  align-items: center;
  gap: var(--rc-prof-s-3);
  font-size: var(--rc-prof-fs-small);
  color: var(--rc-prof-text-secondary);
  margin-bottom: var(--rc-prof-s-3);
  flex-wrap: wrap;
}

body.dashv2-active .rc-prof-header__meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--rc-prof-s-2);
}

body.dashv2-active .rc-prof-header__meta-item i {
  font-size: 12px;
  color: var(--rc-prof-text-muted);
}

body.dashv2-active .rc-prof-header__meta-sep {
  color: var(--rc-prof-text-muted);
}

/* Bio */
body.dashv2-active .rc-prof-header__bio {
  font-size: var(--rc-prof-fs-body);
  line-height: 24px;
  color: var(--rc-prof-text-secondary);
  max-width: 560px;
  margin: 0 0 var(--rc-prof-s-4) 0;
}

/* Action buttons row (owner only) */
body.dashv2-active .rc-prof-header__actions {
  display: flex;
  gap: var(--rc-prof-s-3);
  flex-wrap: wrap;
}

body.dashv2-active .rc-prof-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--rc-prof-s-2);
  padding: 12px 20px;
  font-size: var(--rc-prof-fs-body);
  font-weight: 500;
  border-radius: var(--rc-prof-r-sm);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--rc-prof-dur-instant) linear,
              border-color var(--rc-prof-dur-instant) linear,
              color var(--rc-prof-dur-instant) linear;
}

body.dashv2-active .rc-prof-btn:focus-visible {
  outline: 2px solid var(--rc-prof-aurora);
  outline-offset: 2px;
}

body.dashv2-active .rc-prof-btn--primary {
  background: var(--rc-prof-aurora);
  color: #fff;
}

body.dashv2-active .rc-prof-btn--primary:hover {
  background: var(--rc-prof-aurora-hover);
  color: #fff;
}

body.dashv2-active .rc-prof-btn--ghost {
  background: var(--rc-prof-card);
  color: var(--rc-prof-text-primary);
  border: 1.5px solid var(--rc-prof-royal-strong);
}

body.dashv2-active .rc-prof-btn--ghost:hover {
  background: var(--rc-prof-royal-soft);
  border-color: var(--rc-prof-aurora);
  color: var(--rc-prof-text-primary);
}

/* ---------- 5. Profile Completion card (owner only, score < 100) ---------- */
body.dashv2-active .rc-prof-completion {
  flex: 0 0 360px;
  background: var(--rc-prof-card);
  border-radius: var(--rc-prof-r-lg);
  box-shadow: var(--rc-prof-shadow-sm);
  padding: var(--rc-prof-s-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.dashv2-active .rc-prof-completion__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--rc-prof-s-3);
}

body.dashv2-active .rc-prof-completion__title {
  font-size: var(--rc-prof-fs-body);
  font-weight: 500;
  color: var(--rc-prof-text-primary);
  margin: 0;
}

body.dashv2-active .rc-prof-completion__pct {
  font-size: var(--rc-prof-fs-small);
  font-weight: 500;
  color: var(--rc-prof-mint-hover);
}

body.dashv2-active .rc-prof-completion__bar {
  height: 8px;
  background: var(--rc-prof-border);
  border-radius: var(--rc-prof-r-full);
  overflow: hidden;
  margin-bottom: var(--rc-prof-s-4);
}

body.dashv2-active .rc-prof-completion__bar-fill {
  height: 100%;
  background: var(--rc-prof-mint);
  border-radius: var(--rc-prof-r-full);
  transition: width 600ms var(--rc-prof-ease-out);
}

body.dashv2-active .rc-prof-completion__nudge {
  display: flex;
  align-items: center;
  gap: var(--rc-prof-s-3);
  padding: var(--rc-prof-s-3);
  margin: calc(var(--rc-prof-s-3) * -1);
  margin-top: 0;
  border-radius: var(--rc-prof-r-sm);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--rc-prof-dur-instant) linear;
}

body.dashv2-active .rc-prof-completion__nudge:hover {
  background: var(--rc-prof-royal-soft);
  color: inherit;
}

body.dashv2-active .rc-prof-completion__icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rc-prof-tint-mint);
  color: var(--rc-prof-mint-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

body.dashv2-active .rc-prof-completion__text {
  flex: 1 1 auto;
  font-size: var(--rc-prof-fs-small);
  line-height: 1.4;
}

body.dashv2-active .rc-prof-completion__text-light {
  color: var(--rc-prof-text-secondary);
}

body.dashv2-active .rc-prof-completion__text-strong {
  color: var(--rc-prof-text-primary);
  font-weight: 500;
}

body.dashv2-active .rc-prof-completion__arrow {
  flex: 0 0 auto;
  color: var(--rc-prof-text-muted);
  font-size: 14px;
}

/* ---------- 6. Tablet breakpoint (768–991) ---------- */
@media (max-width: 991px) {
  body.dashv2-active .rc-prof-header-row {
    flex-direction: column;
  }
  body.dashv2-active .rc-prof-completion {
    flex: 0 0 auto;
    max-width: 480px;
  }
}

/* ---------- 7. Mobile breakpoint (≤767) ---------- */
@media (max-width: 767px) {
  body.dashv2-active .rc-prof-container {
    padding: 0 var(--rc-prof-s-4);
  }
  body.dashv2-active .rc-prof-header {
    padding: var(--rc-prof-s-5);
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  body.dashv2-active .rc-prof-header__avatar {
    width: 80px;
    height: 80px;
    font-size: 28px;
  }
  body.dashv2-active .rc-prof-header__namerow,
  body.dashv2-active .rc-prof-header__meta,
  body.dashv2-active .rc-prof-header__actions {
    justify-content: center;
  }
  body.dashv2-active .rc-prof-header__name {
    font-size: 28px;
  }
  body.dashv2-active .rc-prof-header__bio {
    text-align: center;
  }
  body.dashv2-active .rc-prof-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 375px) {
  body.dashv2-active .rc-prof-header__name {
    font-size: 24px;
  }
  body.dashv2-active .rc-prof-completion {
    display: none;
  }
}

/* ---------- 8. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  body.dashv2-active *,
  body.dashv2-active *::before,
  body.dashv2-active *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}


/* ============================================================
   PHASE 3b — Stats row + Tab bar + Reviews tab restyle (Session 25)
   Industry-standard component-scoped responsive rules.
   All selectors gated on body.dashv2-active for opt-in cascade.
   var(token, hex) pattern: uses Phase 3a tokens when present,
   falls back to brand-guide hex when not.
   ============================================================ */

/* ---------- 5b. Stats row ---------- */

body.dashv2-active .rc-prof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

body.dashv2-active .rc-prof-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(21, 0, 109, 0.04), 0 0 0 1px rgba(21, 0, 109, 0.04);
  min-height: 92px;
}

body.dashv2-active .rc-prof-stat-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

body.dashv2-active .rc-prof-stat-icon--reviews {
  background: var(--rc-tint-aurora, #EFF0FB);
  color: var(--rc-aurora, #3A43D1);
}

body.dashv2-active .rc-prof-stat-icon--helpful {
  background: var(--rc-tint-mint, #EAFBF6);
  color: #45CFB0;
}

body.dashv2-active .rc-prof-stat-icon--trust {
  background: #FFF6DD;
  color: #B98D00;
}

body.dashv2-active .rc-prof-stat-icon--days {
  background: var(--rc-tint-aurora, #EFF0FB);
  color: var(--rc-aurora, #3A43D1);
}

body.dashv2-active .rc-prof-stat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body.dashv2-active .rc-prof-stat-value {
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  color: var(--rc-prof-text-primary, #15006D);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dashv2-active .rc-prof-stat-value--small {
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
}

body.dashv2-active .rc-prof-stat-value--medium {
  font-size: 22px;
  line-height: 26px;
  font-weight: 700;
}

body.dashv2-active .rc-prof-stat-label {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--rc-prof-text-secondary, #5A5A6E);
  letter-spacing: -0.011em;
}

body.dashv2-active .rc-prof-stat-helper {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--rc-prof-text-muted, #8A8A9A);
  letter-spacing: -0.011em;
}

@media (max-width: 991px) and (min-width: 768px) {
  body.dashv2-active .rc-prof-stat-card { padding: 16px; gap: 12px; }
  body.dashv2-active .rc-prof-stat-value { font-size: 24px; line-height: 28px; }
}

@media (max-width: 767px) {
  body.dashv2-active .rc-prof-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
  }
  body.dashv2-active .rc-prof-stat-card { padding: 16px; gap: 12px; }
  body.dashv2-active .rc-prof-stat-value { font-size: 22px; line-height: 26px; }
}

@media (max-width: 375px) {
  body.dashv2-active .rc-prof-stat-card { padding: 12px; gap: 8px; }
  body.dashv2-active .rc-prof-stat-icon { width: 32px; height: 32px; font-size: 14px; }
  body.dashv2-active .rc-prof-stat-value { font-size: 20px; line-height: 24px; }
  body.dashv2-active .rc-prof-stat-label { font-size: 12px; }
  body.dashv2-active .rc-prof-stat-helper { display: none; }
}

/* ---------- 5c. Tab bar ---------- */

body.dashv2-active .rc-prof-tabs-wrap {
  position: relative;
  margin-top: 24px;
}

body.dashv2-active .rc-prof-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 1px 2px rgba(21, 0, 109, 0.04), 0 0 0 1px rgba(21, 0, 109, 0.04);
  position: relative;
}

body.dashv2-active .rc-prof-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  background: transparent;
  color: var(--rc-prof-text-secondary, #5A5A6E);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.011em;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  transition: background-color 100ms linear, color 100ms linear;
}

body.dashv2-active .rc-prof-tab:hover {
  background: rgba(21, 0, 109, 0.04);
  color: var(--rc-prof-text-primary, #15006D);
  text-decoration: none;
}

body.dashv2-active .rc-prof-tab i {
  font-size: 16px;
  line-height: 1;
}

body.dashv2-active .rc-prof-tab--active {
  background: var(--rc-tint-aurora, #EFF0FB);
  color: var(--rc-aurora, #3A43D1);
}

body.dashv2-active .rc-prof-tab--active:hover {
  background: #E0E2F7;
  color: var(--rc-aurora, #3A43D1);
}

body.dashv2-active .rc-prof-tab--active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -10px;
  height: 2px;
  background: var(--rc-aurora, #3A43D1);
  border-radius: 2px 2px 0 0;
}

body.dashv2-active .rc-prof-tab:focus-visible {
  outline: 2px solid var(--rc-aurora, #3A43D1);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  body.dashv2-active .rc-prof-tabs-wrap { margin-top: 16px; }
  body.dashv2-active .rc-prof-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  body.dashv2-active .rc-prof-tabs::-webkit-scrollbar { display: none; }
  body.dashv2-active .rc-prof-tabs-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 24px;
    background: linear-gradient(to right, transparent, #F7F7F9);
    pointer-events: none;
    border-radius: 0 16px 16px 0;
  }
  body.dashv2-active .rc-prof-tab { padding: 10px 14px; font-size: 15px; }
  body.dashv2-active .rc-prof-tab--active::after { left: 10px; right: 10px; bottom: -8px; }
}

/* ---------- 5d. Section header ---------- */

body.dashv2-active .rc-prof-section-header {
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  color: var(--rc-prof-text-primary, #15006D);
  letter-spacing: -0.01em;
  margin: 0 0 16px 0;
}

@media (max-width: 767px) {
  body.dashv2-active .rc-prof-section-header { font-size: 20px; line-height: 24px; }
}

/* ---------- 5e. Reviews tab — restyle in-place via .item-review-* ---------- */

body.dashv2-active .item-reviews {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.dashv2-active .item-review { margin-bottom: 0; }

body.dashv2-active .item-review > p.text-muted {
  font-size: 14px;
  line-height: 20px;
  color: var(--rc-prof-text-secondary, #5A5A6E) !important;
  letter-spacing: -0.011em;
  margin: 0 0 8px 0;
}

body.dashv2-active .item-review > p.text-muted a {
  color: var(--rc-aurora, #3A43D1);
  text-decoration: none;
  font-weight: 500;
}

body.dashv2-active .item-review > p.text-muted a:hover { text-decoration: underline; }

body.dashv2-active .item-review .box {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(21, 0, 109, 0.04), 0 0 0 1px rgba(21, 0, 109, 0.04);
  border: 0;
  transition: box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.dashv2-active .item-review:hover .box {
  box-shadow: 0 4px 12px rgba(21, 0, 109, 0.06), 0 0 0 1px rgba(21, 0, 109, 0.04);
}

/* Header row: avatar, name, badges, flag */
body.dashv2-active .item-review-header { margin-bottom: 16px; }

body.dashv2-active .item-review-header .user-avatar img {
  border-radius: 9999px;
  width: 40px;
  height: 40px;
  object-fit: cover;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px rgba(21, 0, 109, 0.06);
}

body.dashv2-active .item-review-header .fw-bold {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--rc-prof-text-primary, #15006D) !important;
  letter-spacing: -0.011em;
}

body.dashv2-active .item-review-header .fw-bold a {
  color: var(--rc-prof-text-primary, #15006D) !important;
  font-weight: 600;
}

body.dashv2-active .item-review-header .fw-bold a:hover {
  color: var(--rc-aurora, #3A43D1) !important;
}

body.dashv2-active .item-review-header .verified-icon {
  color: var(--rc-aurora, #3A43D1);
  font-size: 16px;
}

body.dashv2-active .item-review-top-reviewer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  background: #FFF6DD;
  color: #8A6500;
  letter-spacing: -0.011em;
}

body.dashv2-active .item-review-top-reviewer-badge i {
  color: #B98D00;
  font-size: 11px;
  margin-right: 0 !important;
}

body.dashv2-active .item-review-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--rc-tint-mint, #EAFBF6);
  color: var(--rc-royal, #15006D);
  letter-spacing: -0.011em;
}

body.dashv2-active .item-review-verified-pill i {
  font-size: 11px;
  color: #45CFB0;
}

body.dashv2-active .item-review-header .small {
  font-size: 12px;
  color: var(--rc-prof-text-muted, #8A8A9A);
  letter-spacing: -0.011em;
}

body.dashv2-active .item-review-header .small i {
  font-size: 11px;
  margin-right: 2px;
}

body.dashv2-active .item-review-header .text-muted {
  color: var(--rc-prof-text-muted, #8A8A9A) !important;
}

body.dashv2-active .rc-review-country {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.dashv2-active .item-review-header .badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-weight: 500;
}

body.dashv2-active .item-review-header .badge.bg-danger {
  background: var(--rc-prof-error-tint, #FBEDE7) !important;
  color: var(--rc-prof-error, #D85A30) !important;
}

body.dashv2-active .item-review-header .badge.bg-warning {
  background: #FFF6DD !important;
  color: #8A6500 !important;
}

body.dashv2-active .item-review-action {
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 8px;
  color: var(--rc-prof-text-muted, #8A8A9A);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 100ms linear, color 100ms linear;
}

body.dashv2-active .item-review-action:hover {
  background: rgba(21, 0, 109, 0.04);
  color: var(--rc-prof-text-primary, #15006D);
  text-decoration: none;
}

body.dashv2-active .item-review-action:focus-visible {
  outline: 2px solid var(--rc-aurora, #3A43D1);
  outline-offset: 2px;
}

body.dashv2-active .item-review-action--danger { color: var(--rc-prof-error, #D85A30); }

body.dashv2-active .item-review-action--danger:hover {
  background: var(--rc-prof-error-tint, #FBEDE7);
  color: var(--rc-prof-error, #D85A30);
}

/* Rating row: stars chip + Recommends pill + Order chip */
body.dashv2-active .item-review-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

body.dashv2-active .item-review-stars-img {
  background: rgba(21, 0, 109, 0.04);
  padding: 6px 10px;
  border-radius: 8px;
  height: auto;
  max-height: 28px;
  width: auto;
  box-sizing: content-box;
}

body.dashv2-active .item-review-rating-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--rc-prof-text-primary, #15006D);
  letter-spacing: -0.01em;
}

body.dashv2-active .item-review-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.011em;
}

body.dashv2-active .item-review-pill--recommend {
  background: var(--rc-tint-mint, #EAFBF6);
  color: var(--rc-royal, #15006D);
}

body.dashv2-active .item-review-pill--recommend i { color: #45CFB0; }

body.dashv2-active .item-review-pill--no-recommend {
  background: var(--rc-prof-error-tint, #FBEDE7);
  color: var(--rc-prof-error, #D85A30);
}

body.dashv2-active .item-review-pill--no-recommend i { color: var(--rc-prof-error, #D85A30); }

body.dashv2-active .item-review-pill--order {
  background: var(--rc-tint-aurora, #EFF0FB);
  color: var(--rc-aurora, #3A43D1);
}

body.dashv2-active .item-review-pill--order i { color: var(--rc-aurora, #3A43D1); }

/* Body: title + text */
body.dashv2-active .item-review-body { padding: 0; }

body.dashv2-active .item-review-title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--rc-prof-text-primary, #15006D);
  letter-spacing: -0.01em;
  margin: 0 0 8px 0;
}

body.dashv2-active .item-review-text {
  font-size: 16px;
  line-height: 24px;
  color: var(--rc-prof-text-secondary, #5A5A6E);
  letter-spacing: -0.011em;
  margin: 0;
}

body.dashv2-active .item-review-text strong,
body.dashv2-active .item-review-text b {
  color: var(--rc-prof-text-primary, #15006D);
  font-weight: 600;
}

/* Attachments grid */
body.dashv2-active .item-review-img {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}

body.dashv2-active .item-review-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.dashv2-active .item-review-img-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  background: rgba(216, 90, 48, 0.95);
  border: 0;
  border-radius: 9999px;
  width: 24px;
  height: 24px;
  color: #FFFFFF;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

/* Aspect tags + date row */
body.dashv2-active .item-review-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rc-prof-border, #E8E8EE);
}

body.dashv2-active .review-aspect-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.dashv2-active .review-aspect-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(21, 0, 109, 0.04);
  color: var(--rc-prof-text-secondary, #5A5A6E);
  text-decoration: none;
  letter-spacing: -0.011em;
  transition: background-color 100ms linear, color 100ms linear;
}

body.dashv2-active .review-aspect-tag:hover {
  background: var(--rc-tint-aurora, #EFF0FB);
  color: var(--rc-aurora, #3A43D1);
  text-decoration: none;
}

body.dashv2-active .review-aspect-tag--active {
  background: var(--rc-aurora, #3A43D1);
  color: #FFFFFF;
}

body.dashv2-active .review-aspect-tag--active:hover {
  background: #2E36B5;
  color: #FFFFFF;
}

body.dashv2-active .item-review-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--rc-prof-text-muted, #8A8A9A);
  letter-spacing: -0.011em;
}

/* Footer: actions row (likes, share, edit, delete) */
body.dashv2-active .item-review-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rc-prof-border, #E8E8EE);
}

body.dashv2-active .item-review-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.dashv2-active .item-review-actions .item-review-action span {
  font-size: 13px;
  font-weight: 500;
}

body.dashv2-active .item-review-actions .dropdown-menu {
  border-radius: 12px;
  border: 0;
  box-shadow: 0 4px 12px rgba(21, 0, 109, 0.08), 0 0 0 1px rgba(21, 0, 109, 0.04);
  padding: 8px;
}

/* Report collapse form */
body.dashv2-active .item-review-actions-content .bg-light {
  background: rgba(21, 0, 109, 0.04) !important;
  border-radius: 8px;
  padding: 16px !important;
}

body.dashv2-active .item-review-actions-content textarea {
  border: 1.5px solid var(--rc-prof-royal-strong, rgba(21, 0, 109, 0.16));
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  padding: 10px 12px;
  width: 100%;
}

body.dashv2-active .item-review-actions-content textarea:focus {
  outline: none;
  border-color: var(--rc-aurora, #3A43D1);
  box-shadow: 0 0 0 3px var(--rc-tint-aurora, #EFF0FB);
}

body.dashv2-active .item-review-actions-content .btn-primary {
  background: var(--rc-aurora, #3A43D1);
  border-color: var(--rc-aurora, #3A43D1);
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
}

body.dashv2-active .item-review-actions-content .btn-primary:hover {
  background: #2E36B5;
  border-color: #2E36B5;
}

/* Business reply nesting */
body.dashv2-active .item-review-reply {
  background: rgba(21, 0, 109, 0.03);
  border-left: 3px solid var(--rc-aurora, #3A43D1);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0 0 0 !important;
}

body.dashv2-active .item-review-reply .user-avatar img {
  border-radius: 8px;
  width: 36px;
  height: 36px;
  object-fit: cover;
}

body.dashv2-active .item-review-reply .fw-semibold {
  font-size: 14px;
  font-weight: 600;
  color: var(--rc-prof-text-primary, #15006D);
  text-decoration: none;
}

body.dashv2-active .item-review-reply .item-review-text {
  font-size: 14px;
  line-height: 22px;
}

/* Pagination */
body.dashv2-active .pagination {
  display: flex;
  gap: 4px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  justify-content: center;
}

body.dashv2-active .pagination .page-item { margin: 0; }

body.dashv2-active .pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--rc-prof-border, #E8E8EE);
  background: #FFFFFF;
  color: var(--rc-prof-text-secondary, #5A5A6E);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.011em;
  transition: background-color 100ms linear, color 100ms linear;
}

body.dashv2-active .pagination .page-link:hover {
  background: rgba(21, 0, 109, 0.04);
  color: var(--rc-prof-text-primary, #15006D);
  border-color: var(--rc-prof-border, #E8E8EE);
}

body.dashv2-active .pagination .page-item.active .page-link {
  background: var(--rc-aurora, #3A43D1);
  color: #FFFFFF;
  border-color: var(--rc-aurora, #3A43D1);
}

body.dashv2-active .pagination .page-item.disabled .page-link {
  color: var(--rc-prof-text-muted, #8A8A9A);
  background: #FFFFFF;
  cursor: not-allowed;
  opacity: 0.6;
}

@media (max-width: 767px) {
  body.dashv2-active .item-review .box { padding: 20px; }
  body.dashv2-active .item-review-header .fw-bold { font-size: 14px !important; }
  body.dashv2-active .item-review-title { font-size: 17px; line-height: 22px; }
  body.dashv2-active .item-review-text { font-size: 15px; line-height: 22px; }
  body.dashv2-active .item-review-meta-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 375px) {
  body.dashv2-active .item-review .box { padding: 16px; }
}

/* ---------- 5f. Empty state ---------- */

body.dashv2-active .rc-prof-empty-state {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(21, 0, 109, 0.04), 0 0 0 1px rgba(21, 0, 109, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

body.dashv2-active .rc-prof-empty-state__icon {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: var(--rc-tint-aurora, #EFF0FB);
  color: var(--rc-aurora, #3A43D1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

body.dashv2-active .rc-prof-empty-state__title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
  color: var(--rc-prof-text-primary, #15006D);
  letter-spacing: -0.01em;
  max-width: 360px;
  margin: 0;
}

body.dashv2-active .rc-prof-empty-state__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--rc-aurora, #3A43D1);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.011em;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 8px;
  transition: background-color 100ms linear;
}

body.dashv2-active .rc-prof-empty-state__cta:hover {
  background: #2E36B5;
  color: #FFFFFF;
  text-decoration: none;
}

body.dashv2-active .rc-prof-empty-state__cta:focus-visible {
  outline: 2px solid var(--rc-aurora, #3A43D1);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  body.dashv2-active .rc-prof-empty-state { padding: 32px 16px; }
}

/* ---------- 5g. Spacing rhythm between header / stats / tabs / content ---------- */

body.dashv2-active .rc-prof-content { margin-top: 24px !important; }

@media (max-width: 767px) {
  body.dashv2-active .rc-prof-content { margin-top: 16px !important; }
}

/* End Phase 3b append */

/* ============================================================
   PHASE 3c — Settings restyle + Favorites tab + v2 Toast (Session 25)
   CSS bumps to 1.7.4. Industry-standard component-scoped responsive rules.
   All selectors gated on body.dashv2-active for opt-in cascade.
   var(token, hex) pattern: uses Phase 3a tokens when present,
   falls back to brand-guide hex when not.
   ============================================================ */

/* ---------- 6a. Settings page chrome ---------- */

body.dashv2-active .rc-prof-settings-card,
body.dashv2-active .rc-prof-content > .card {
  background: #FFFFFF;
  border: 0;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(21, 0, 109, 0.04), 0 0 0 1px rgba(21, 0, 109, 0.04);
  overflow: hidden;
}

body.dashv2-active .rc-prof-content > .card .card-header {
  background: #FFFFFF;
  border: 0;
  border-bottom: 1px solid var(--rc-prof-border, #E8E8EE);
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 700;
  color: var(--rc-prof-text-primary, #15006D);
  letter-spacing: -0.01em;
}

body.dashv2-active .rc-prof-content > .card .card-body {
  padding: 24px !important;
}

body.dashv2-active .rc-prof-content > .card .text-muted,
body.dashv2-active .rc-prof-content > .card .form-text {
  color: var(--rc-prof-text-secondary, #5A5A6E) !important;
  font-size: 14px;
  line-height: 20px;
}

@media (max-width: 767px) {
  body.dashv2-active .rc-prof-content > .card .card-header { padding: 16px 20px; font-size: 16px; }
  body.dashv2-active .rc-prof-content > .card .card-body { padding: 20px !important; }
}

/* ---------- 6b. Form components ---------- */

body.dashv2-active .form-label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--rc-prof-text-primary, #15006D);
  letter-spacing: -0.011em;
  margin-bottom: 6px;
  display: block;
}

body.dashv2-active .form-control,
body.dashv2-active .form-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 24px;
  font-family: inherit;
  font-weight: 400;
  color: var(--rc-prof-text-primary, #15006D);
  background: #FFFFFF;
  border: 1px solid var(--rc-prof-border, #E8E8EE);
  border-radius: 8px;
  letter-spacing: -0.011em;
  transition: border-color 100ms linear, box-shadow 100ms linear;
  appearance: none;
}

body.dashv2-active .form-control::placeholder {
  color: var(--rc-prof-text-muted, #8A8A9A);
  opacity: 1;
}

body.dashv2-active .form-control:hover:not(:focus):not(:disabled),
body.dashv2-active .form-select:hover:not(:focus):not(:disabled) {
  border-color: rgba(21, 0, 109, 0.24);
}

body.dashv2-active .form-control:focus,
body.dashv2-active .form-select:focus {
  outline: none;
  border-color: var(--rc-aurora, #3A43D1);
  box-shadow: 0 0 0 3px var(--rc-tint-aurora, #EFF0FB);
}

body.dashv2-active .form-control:disabled,
body.dashv2-active .form-select:disabled {
  background: rgba(21, 0, 109, 0.03);
  color: var(--rc-prof-text-muted, #8A8A9A);
  cursor: not-allowed;
  opacity: 0.7;
}

body.dashv2-active .form-control.is-invalid,
body.dashv2-active .form-select.is-invalid {
  border-color: var(--rc-prof-error, #D85A30);
  background: var(--rc-prof-error-tint, #FBEDE7);
}

body.dashv2-active .form-control.is-invalid:focus,
body.dashv2-active .form-select.is-invalid:focus {
  border-color: var(--rc-prof-error, #D85A30);
  box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.16);
}

body.dashv2-active .invalid-feedback {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 18px;
  color: var(--rc-prof-error, #D85A30);
  font-weight: 500;
}

/* Select chevron — restore native arrow with brand styling */
body.dashv2-active .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2315006D' viewBox='0 0 16 16'%3E%3Cpath d='M3.204 5.247l4.796 4.795 4.796-4.795a.5.5 0 11.708.707l-5.15 5.15a.5.5 0 01-.708 0l-5.15-5.15a.5.5 0 11.708-.707z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Textarea — multi-line with min-height */
body.dashv2-active textarea.form-control {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

/* Char counter (for bio field) */
body.dashv2-active .rc-prof-form-counter {
  display: block;
  text-align: right;
  margin-top: 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--rc-prof-text-muted, #8A8A9A);
  letter-spacing: -0.011em;
}

body.dashv2-active .rc-prof-form-counter--warn {
  color: var(--rc-prof-warning, #BA7517);
}

body.dashv2-active .rc-prof-form-counter--over {
  color: var(--rc-prof-error, #D85A30);
  font-weight: 500;
}

/* Form group row spacing */
body.dashv2-active .rc-prof-content > .card .row.g-3 > [class*="col-"] {
  padding-bottom: 4px;
}

/* Toggle switch (favorites_public, etc.) */
body.dashv2-active .form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-left: 0;
  margin-bottom: 0;
  min-height: auto;
}

body.dashv2-active .form-check-input {
  flex-shrink: 0;
  width: 40px;
  height: 24px;
  margin-top: 0;
  margin-left: 0;
  appearance: none;
  background-color: rgba(21, 0, 109, 0.16);
  background-image: none;
  border: 0;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: background-color 150ms ease;
}

body.dashv2-active .form-check-input::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #FFFFFF;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
  transition: transform 150ms ease;
}

body.dashv2-active .form-check-input:checked {
  background-color: var(--rc-aurora, #3A43D1);
}

body.dashv2-active .form-check-input:checked::before {
  transform: translateX(16px);
}

body.dashv2-active .form-check-input:focus-visible {
  outline: 2px solid var(--rc-aurora, #3A43D1);
  outline-offset: 2px;
}

body.dashv2-active .form-check-label {
  cursor: pointer;
  user-select: none;
  flex: 1;
  min-width: 0;
}

body.dashv2-active .form-check-label .rc-prof-form-check-title {
  display: block;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  color: var(--rc-prof-text-primary, #15006D);
  letter-spacing: -0.011em;
}

body.dashv2-active .form-check-label .rc-prof-form-check-helper {
  display: block;
  font-size: 13px;
  line-height: 18px;
  color: var(--rc-prof-text-secondary, #5A5A6E);
  letter-spacing: -0.011em;
  margin-top: 2px;
}

/* Input group (e.g. 2FA secret + copy button) */
body.dashv2-active .input-group {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rc-prof-border, #E8E8EE);
  transition: border-color 100ms linear, box-shadow 100ms linear;
}

body.dashv2-active .input-group:focus-within {
  border-color: var(--rc-aurora, #3A43D1);
  box-shadow: 0 0 0 3px var(--rc-tint-aurora, #EFF0FB);
}

body.dashv2-active .input-group .form-control {
  border: 0;
  border-radius: 0;
}

body.dashv2-active .input-group .form-control:focus {
  box-shadow: none;
}

body.dashv2-active .input-group .btn {
  border: 0;
  border-left: 1px solid var(--rc-prof-border, #E8E8EE);
  border-radius: 0;
  margin: 0;
  padding: 0 16px;
  min-height: 44px;
}

/* ---------- 6c. Buttons ---------- */

body.dashv2-active .rc-prof-content .btn,
body.dashv2-active .rc-prof-content > .card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  border-radius: 8px;
  border: 1.5px solid transparent;
  letter-spacing: -0.011em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 100ms linear, border-color 100ms linear, color 100ms linear;
}

body.dashv2-active .rc-prof-content .btn-primary {
  background: var(--rc-aurora, #3A43D1);
  border-color: var(--rc-aurora, #3A43D1);
  color: #FFFFFF;
}

body.dashv2-active .rc-prof-content .btn-primary:hover,
body.dashv2-active .rc-prof-content .btn-primary:focus {
  background: var(--rc-aurora-hover, #2E36B5);
  border-color: var(--rc-aurora-hover, #2E36B5);
  color: #FFFFFF;
}

body.dashv2-active .rc-prof-content .btn-outline-primary {
  background: #FFFFFF;
  border-color: var(--rc-aurora, #3A43D1);
  color: var(--rc-aurora, #3A43D1);
}

body.dashv2-active .rc-prof-content .btn-outline-primary:hover,
body.dashv2-active .rc-prof-content .btn-outline-primary:focus {
  background: var(--rc-tint-aurora, #EFF0FB);
  color: var(--rc-aurora, #3A43D1);
}

body.dashv2-active .rc-prof-content .btn-danger {
  background: var(--rc-prof-error, #D85A30);
  border-color: var(--rc-prof-error, #D85A30);
  color: #FFFFFF;
}

body.dashv2-active .rc-prof-content .btn-danger:hover,
body.dashv2-active .rc-prof-content .btn-danger:focus {
  background: #BC4D29;
  border-color: #BC4D29;
  color: #FFFFFF;
}

body.dashv2-active .rc-prof-content .btn-outline-danger {
  background: #FFFFFF;
  border-color: var(--rc-prof-error, #D85A30);
  color: var(--rc-prof-error, #D85A30);
}

body.dashv2-active .rc-prof-content .btn-outline-danger:hover,
body.dashv2-active .rc-prof-content .btn-outline-danger:focus {
  background: var(--rc-prof-error-tint, #FBEDE7);
  color: var(--rc-prof-error, #D85A30);
}

body.dashv2-active .rc-prof-content .btn-light {
  background: rgba(21, 0, 109, 0.04);
  border-color: rgba(21, 0, 109, 0.04);
  color: var(--rc-prof-text-primary, #15006D);
}

body.dashv2-active .rc-prof-content .btn-light:hover,
body.dashv2-active .rc-prof-content .btn-light:focus {
  background: rgba(21, 0, 109, 0.08);
  border-color: rgba(21, 0, 109, 0.08);
  color: var(--rc-prof-text-primary, #15006D);
}

body.dashv2-active .rc-prof-content .btn:focus-visible {
  outline: 2px solid var(--rc-aurora, #3A43D1);
  outline-offset: 2px;
}

body.dashv2-active .rc-prof-content .btn:disabled,
body.dashv2-active .rc-prof-content .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* btn-md sizing harmonization */
body.dashv2-active .rc-prof-content .btn.btn-md {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
}

/* ---------- 6d. Modal restyle (2FA + delete-confirm + future) ---------- */

body.dashv2-active .modal .modal-dialog {
  margin-top: 80px;
  margin-bottom: 80px;
}

body.dashv2-active .modal .modal-content {
  background: #FFFFFF;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(21, 0, 109, 0.20), 0 0 0 1px rgba(21, 0, 109, 0.04);
  padding: 24px !important;
  overflow: hidden;
}

body.dashv2-active .modal .modal-header {
  border: 0 !important;
  padding: 0 0 16px 0 !important;
  margin-bottom: 0;
}

body.dashv2-active .modal .modal-title {
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  color: var(--rc-prof-text-primary, #15006D);
  letter-spacing: -0.01em;
}

body.dashv2-active .modal .btn-close {
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  background: rgba(21, 0, 109, 0.04);
  border-radius: 8px;
  opacity: 1;
  transition: background-color 100ms linear;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2315006D' viewBox='0 0 16 16'%3E%3Cpath d='M2.146 2.854a.5.5 0 11.708-.708L8 7.293l5.146-5.147a.5.5 0 01.708.708L8.707 8l5.147 5.146a.5.5 0 01-.708.708L8 8.707l-5.146 5.147a.5.5 0 01-.708-.708L7.293 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

body.dashv2-active .modal .btn-close:hover,
body.dashv2-active .modal .btn-close:focus {
  background-color: rgba(21, 0, 109, 0.08);
  opacity: 1;
}

body.dashv2-active .modal .modal-body {
  padding: 0 !important;
}

/* Numeric OTP input (6 digits) */
body.dashv2-active .modal .input-numeric {
  text-align: center;
  font-size: 24px;
  letter-spacing: 8px;
  font-weight: 700;
  color: var(--rc-prof-text-primary, #15006D);
}

/* ---------- 6e. Avatar upload row ---------- */

body.dashv2-active .attach-img {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

body.dashv2-active .attach-img-preview {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
  border-radius: 9999px !important;
  border: 0 !important;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px rgba(21, 0, 109, 0.06), 0 1px 3px rgba(21, 0, 109, 0.08);
}

body.dashv2-active .attach-img-button {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  background: rgba(21, 0, 109, 0.04) !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: var(--rc-prof-text-primary, #15006D) !important;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 100ms linear;
}

body.dashv2-active .attach-img-button:hover,
body.dashv2-active .attach-img-button:focus {
  background: rgba(21, 0, 109, 0.08) !important;
  color: var(--rc-prof-text-primary, #15006D) !important;
}

body.dashv2-active .attach-img-button i {
  color: var(--rc-aurora, #3A43D1);
  font-size: 14px;
}

/* End Phase 3c part 1 (settings + form components) */

/* ---------- 6f. Favorites grid + business card ---------- */

body.dashv2-active .rc-prof-favorites-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 0;
}

@media (min-width: 992px) {
  body.dashv2-active .rc-prof-favorites-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

body.dashv2-active .rc-prof-fav-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(21, 0, 109, 0.04), 0 0 0 1px rgba(21, 0, 109, 0.04);
  transition: box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
}

body.dashv2-active .rc-prof-fav-card:hover {
  box-shadow: 0 4px 12px rgba(21, 0, 109, 0.06), 0 0 0 1px rgba(21, 0, 109, 0.04);
  text-decoration: none;
  color: inherit;
}

body.dashv2-active .rc-prof-fav-card__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

body.dashv2-active .rc-prof-fav-card__logo {
  flex-shrink: 0;
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(21, 0, 109, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dashv2-active .rc-prof-fav-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.dashv2-active .rc-prof-fav-card__verified {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: var(--rc-aurora, #3A43D1);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 0 0 2px #FFFFFF;
}

body.dashv2-active .rc-prof-fav-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.dashv2-active .rc-prof-fav-card__title {
  font-size: 17px;
  line-height: 22px;
  font-weight: 700;
  color: var(--rc-prof-text-primary, #15006D);
  letter-spacing: -0.01em;
  margin: 0;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.dashv2-active .rc-prof-fav-card__title:hover {
  color: var(--rc-aurora, #3A43D1);
  text-decoration: none;
}

body.dashv2-active .rc-prof-fav-card__url {
  font-size: 13px;
  line-height: 18px;
  color: var(--rc-prof-text-muted, #8A8A9A);
  letter-spacing: -0.011em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dashv2-active .rc-prof-fav-card__rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

body.dashv2-active .rc-prof-fav-card__rating-img {
  background: rgba(21, 0, 109, 0.04);
  padding: 4px 8px;
  border-radius: 6px;
  height: auto;
  max-height: 24px;
  width: auto;
}

body.dashv2-active .rc-prof-fav-card__rating-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--rc-prof-text-primary, #15006D);
  letter-spacing: -0.01em;
}

body.dashv2-active .rc-prof-fav-card__rating-count {
  font-size: 13px;
  color: var(--rc-prof-text-secondary, #5A5A6E);
  letter-spacing: -0.011em;
}

body.dashv2-active .rc-prof-fav-card__rating-empty {
  font-size: 13px;
  color: var(--rc-prof-text-muted, #8A8A9A);
  font-style: italic;
  letter-spacing: -0.011em;
}

body.dashv2-active .rc-prof-fav-card__remove {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 0;
  background: transparent;
  color: var(--rc-prof-text-muted, #8A8A9A);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 100ms linear, color 100ms linear;
}

body.dashv2-active .rc-prof-fav-card__remove:hover,
body.dashv2-active .rc-prof-fav-card__remove:focus {
  background: var(--rc-prof-error-tint, #FBEDE7);
  color: var(--rc-prof-error, #D85A30);
}

body.dashv2-active .rc-prof-fav-card__remove:focus-visible {
  outline: 2px solid var(--rc-aurora, #3A43D1);
  outline-offset: 2px;
}

body.dashv2-active .rc-prof-fav-card__desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--rc-prof-text-secondary, #5A5A6E);
  letter-spacing: -0.011em;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.dashv2-active .rc-prof-fav-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--rc-prof-border, #E8E8EE);
}

body.dashv2-active .rc-prof-fav-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.011em;
  background: rgba(21, 0, 109, 0.04);
  color: var(--rc-prof-text-secondary, #5A5A6E);
}

body.dashv2-active .rc-prof-fav-card__chip i {
  font-size: 11px;
  color: var(--rc-prof-text-muted, #8A8A9A);
}

body.dashv2-active .rc-prof-fav-card__chip--category {
  background: var(--rc-tint-aurora, #EFF0FB);
  color: var(--rc-aurora, #3A43D1);
}

body.dashv2-active .rc-prof-fav-card__chip--category i {
  color: var(--rc-aurora, #3A43D1);
}

body.dashv2-active .rc-prof-fav-card__chip--location {
  background: var(--rc-tint-mint, #EAFBF6);
  color: var(--rc-prof-text-primary, #15006D);
}

body.dashv2-active .rc-prof-fav-card__chip--location i {
  color: #45CFB0;
}

@media (max-width: 575px) {
  body.dashv2-active .rc-prof-fav-card { padding: 16px; }
  body.dashv2-active .rc-prof-fav-card__head { gap: 12px; }
  body.dashv2-active .rc-prof-fav-card__logo { width: 56px; height: 56px; }
  body.dashv2-active .rc-prof-fav-card__title { font-size: 16px; }
  body.dashv2-active .rc-prof-fav-card__remove { width: 32px; height: 32px; }
}

/* ---------- 6g. Favorites empty states (private + no-favs) ---------- */

body.dashv2-active .rc-prof-empty-state--private .rc-prof-empty-state__icon {
  background: var(--rc-prof-error-tint, #FBEDE7);
  color: var(--rc-prof-error, #D85A30);
}

body.dashv2-active .rc-prof-empty-state__subtitle {
  font-size: 14px;
  line-height: 20px;
  color: var(--rc-prof-text-secondary, #5A5A6E);
  letter-spacing: -0.011em;
  max-width: 360px;
  margin: 0;
  text-align: center;
}

/* Search row above favorites grid (existing UserController accepts ?search=) */
body.dashv2-active .rc-prof-fav-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

body.dashv2-active .rc-prof-fav-search__input-wrap {
  flex: 1;
  position: relative;
}

body.dashv2-active .rc-prof-fav-search__input {
  width: 100%;
  height: 44px;
  padding: 10px 14px 10px 40px;
  border-radius: 8px;
  border: 1px solid var(--rc-prof-border, #E8E8EE);
  background: #FFFFFF;
  font-size: 15px;
  font-family: inherit;
  color: var(--rc-prof-text-primary, #15006D);
  letter-spacing: -0.011em;
  transition: border-color 100ms linear, box-shadow 100ms linear;
}

body.dashv2-active .rc-prof-fav-search__input::placeholder {
  color: var(--rc-prof-text-muted, #8A8A9A);
}

body.dashv2-active .rc-prof-fav-search__input:focus {
  outline: none;
  border-color: var(--rc-aurora, #3A43D1);
  box-shadow: 0 0 0 3px var(--rc-tint-aurora, #EFF0FB);
}

body.dashv2-active .rc-prof-fav-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--rc-prof-text-muted, #8A8A9A);
  pointer-events: none;
}

body.dashv2-active .rc-prof-fav-search__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--rc-prof-text-muted, #8A8A9A);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 100ms linear, color 100ms linear;
}

body.dashv2-active .rc-prof-fav-search__clear:hover {
  background: rgba(21, 0, 109, 0.04);
  color: var(--rc-prof-text-primary, #15006D);
}

/* End Phase 3c part 2 (favorites) */

/* ---------- 6h. Toast component v2 ---------- */

body.dashv2-active .rc-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 360px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}

@media (max-width: 575px) {
  body.dashv2-active .rc-toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
}

body.dashv2-active .rc-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 16px 20px;
  background: #FFFFFF;
  border: 0;
  border-left: 4px solid var(--rc-aurora, #3A43D1);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(21, 0, 109, 0.12), 0 0 0 1px rgba(21, 0, 109, 0.04);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(120%);
  animation: rcToastIn 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

body.dashv2-active .rc-toast.rc-toast--leaving {
  animation: rcToastOut 180ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes rcToastIn {
  0% {
    opacity: 0;
    transform: translateX(120%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes rcToastOut {
  0% {
    opacity: 1;
    transform: translateX(0);
    max-height: 200px;
    margin-bottom: 0;
  }
  100% {
    opacity: 0;
    transform: translateX(120%);
    max-height: 0;
    margin-bottom: -12px;
    padding-top: 0;
    padding-bottom: 0;
  }
}

body.dashv2-active .rc-toast__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 1px;
  color: #FFFFFF;
}

body.dashv2-active .rc-toast__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.dashv2-active .rc-toast__title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--rc-prof-text-primary, #15006D);
  letter-spacing: -0.011em;
  margin: 0;
}

body.dashv2-active .rc-toast__message {
  font-size: 14px;
  line-height: 20px;
  color: var(--rc-prof-text-secondary, #5A5A6E);
  letter-spacing: -0.011em;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

body.dashv2-active .rc-toast--no-title .rc-toast__message {
  color: var(--rc-prof-text-primary, #15006D);
  font-weight: 500;
}

body.dashv2-active .rc-toast__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--rc-prof-text-muted, #8A8A9A);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 100ms linear, color 100ms linear;
  margin: -2px -4px 0 0;
}

body.dashv2-active .rc-toast__close:hover,
body.dashv2-active .rc-toast__close:focus {
  background: rgba(21, 0, 109, 0.04);
  color: var(--rc-prof-text-primary, #15006D);
}

body.dashv2-active .rc-toast__close:focus-visible {
  outline: 2px solid var(--rc-aurora, #3A43D1);
  outline-offset: 1px;
}

/* Type: success */
body.dashv2-active .rc-toast--success {
  border-left-color: #45CFB0;
}

body.dashv2-active .rc-toast--success .rc-toast__icon {
  background: #45CFB0;
}

/* Type: error */
body.dashv2-active .rc-toast--error {
  border-left-color: var(--rc-prof-error, #D85A30);
}

body.dashv2-active .rc-toast--error .rc-toast__icon {
  background: var(--rc-prof-error, #D85A30);
}

/* Type: warning */
body.dashv2-active .rc-toast--warning {
  border-left-color: var(--rc-prof-warning, #BA7517);
}

body.dashv2-active .rc-toast--warning .rc-toast__icon {
  background: var(--rc-prof-warning, #BA7517);
}

/* Type: info (default — left border + icon use Aurora; .rc-toast already has Aurora left border) */

body.dashv2-active .rc-toast--info .rc-toast__icon {
  background: var(--rc-aurora, #3A43D1);
}

/* Progress bar (auto-dismiss countdown indicator) */
body.dashv2-active .rc-toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(21, 0, 109, 0.06);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

body.dashv2-active .rc-toast__progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  animation: rcToastProgress var(--rc-toast-duration, 5000ms) linear forwards;
}

body.dashv2-active .rc-toast--success .rc-toast__progress-bar { background: #45CFB0; }
body.dashv2-active .rc-toast--error .rc-toast__progress-bar { background: var(--rc-prof-error, #D85A30); }
body.dashv2-active .rc-toast--warning .rc-toast__progress-bar { background: var(--rc-prof-warning, #BA7517); }
body.dashv2-active .rc-toast--info .rc-toast__progress-bar,
body.dashv2-active .rc-toast .rc-toast__progress-bar { background: var(--rc-aurora, #3A43D1); }

@keyframes rcToastProgress {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

/* Pause auto-dismiss on hover */
body.dashv2-active .rc-toast:hover .rc-toast__progress-bar {
  animation-play-state: paused;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  body.dashv2-active .rc-toast {
    animation-duration: 0.01ms !important;
    transform: none;
    opacity: 1;
  }
  body.dashv2-active .rc-toast.rc-toast--leaving {
    animation-duration: 0.01ms !important;
  }
  body.dashv2-active .rc-toast__progress-bar {
    animation-duration: 0.01ms !important;
  }
}

/* ---------- 6i. Hide legacy toastr on v2 surfaces ---------- */

body.dashv2-active #toast-container { display: none !important; }

/* ---------- 6j. Spacing rhythm — settings + favorites pages ---------- */

body.dashv2-active .rc-prof-content > .card:first-child {
  margin-top: 0;
}

body.dashv2-active .rc-prof-content > .card:last-child {
  margin-bottom: 0;
}

/* Settings page first card needs its own breathing room when below tabs */
body.dashv2-active .rc-prof-content > .rc-prof-section-header + .card {
  margin-top: 16px;
}

/* On mobile, favorites grid breathes less */
@media (max-width: 767px) {
  body.dashv2-active .rc-prof-favorites-grid { gap: 12px; }
  body.dashv2-active .rc-prof-fav-search { margin-bottom: 16px; }
}

/* End Phase 3c append */

/* ============================================================
   Phase 3c Deploy A — Header v2 verified badge polish
   Brand: Aurora blue, sized 0.7em (tracks H1 font-size)
   ============================================================ */

.rc-prof-header__name-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.rc-prof-header__verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.7em;
    height: 0.7em;
    color: var(--rc-aurora);
    flex-shrink: 0;
    cursor: help;
    line-height: 1;
}

.rc-prof-header__verified-badge svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Mobile: badge stays proportional to scaled name */
@media (max-width: 767.98px) {
    .rc-prof-header__name-wrap {
        gap: 6px;
    }
}

/* ============================================================
   Deploy B — verified badge size fix (badge-size-v3)
   Existing 0.7em rule resolves against namerow's 16px body font,
   not h1 — that is why the badge rendered tiny. Override with
   absolute px per breakpoint, matching name h1 scale.
   ============================================================ */
body.dashv2-active .rc-prof-header__verified-badge {
    width: 28px;
    height: 28px;
}
@media (max-width: 767.98px) {
    body.dashv2-active .rc-prof-header__verified-badge {
        width: 22px;
        height: 22px;
    }
}
@media (max-width: 375px) {
    body.dashv2-active .rc-prof-header__verified-badge {
        width: 20px;
        height: 20px;
    }
}
/* End Deploy B append */

/* ============================================================
   Deploy C — geotag flag chip (geotag-v1)
   Country flag span renders Twemoji emoji; Twemoji parser converts
   to <img class="emoji">. Style both states.
   ============================================================ */
body.dashv2-active .rc-prof-header__country-flag {
    display: inline-flex;
    align-items: center;
    margin-right: 4px;
    font-size: 1.1em;
    line-height: 1;
}
body.dashv2-active .rc-prof-header__country-flag img.emoji {
    width: 1.1em;
    height: 1.1em;
    margin: 0;
    vertical-align: -0.15em;
}
/* End Deploy C append */

/* ============================================================
   Deploy D — Settings v2 form chrome (settings-v2)
   Wraps existing Bootstrap form structure in v2 brand chrome.
   Scoped to body.dashv2-active — legacy untouched.
   ============================================================ */

/* Settings page container — give the form area breathing room */
body.dashv2-active .rc-prof-content {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Card surface — replace Bootstrap default with v2 brand card */
body.dashv2-active .rc-prof-content .card {
    background: var(--rc-prof-surface, #ffffff);
    border: 1px solid var(--rc-prof-border, #E8E9F2);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(21, 0, 109, 0.04), 0 1px 2px rgba(21, 0, 109, 0.03);
    margin-bottom: 24px;
    overflow: hidden;
}

/* Card header — Royal text, generous padding, Mint hairline divider */
body.dashv2-active .rc-prof-content .card-header {
    background: transparent;
    border-bottom: 1px solid var(--rc-prof-border, #E8E9F2);
    color: var(--rc-prof-text-primary, #15006D);
    font-size: 16px;
    font-weight: 600;
    padding: 18px 24px;
    letter-spacing: -0.01em;
}

/* Card body — match header padding */
body.dashv2-active .rc-prof-content .card-body {
    padding: 24px;
}
@media (min-width: 768px) {
    body.dashv2-active .rc-prof-content .card-body {
        padding: 28px;
    }
}

/* Form labels — Royal, 14px, 600 weight */
body.dashv2-active .rc-prof-content .form-label {
    color: var(--rc-prof-text-primary, #15006D);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0;
}

/* Form controls — softer borders, larger touch target, Aurora focus ring */
body.dashv2-active .rc-prof-content .form-control,
body.dashv2-active .rc-prof-content .form-select {
    border: 1.5px solid var(--rc-prof-border, #E8E9F2);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--rc-prof-text-primary, #15006D);
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-height: 44px;
}
body.dashv2-active .rc-prof-content .form-control::placeholder {
    color: var(--rc-prof-text-muted, #8A8DA8);
    opacity: 1;
}
body.dashv2-active .rc-prof-content .form-control:hover,
body.dashv2-active .rc-prof-content .form-select:hover {
    border-color: var(--rc-prof-border-strong, #C9CADB);
}
body.dashv2-active .rc-prof-content .form-control:focus,
body.dashv2-active .rc-prof-content .form-select:focus {
    border-color: var(--rc-aurora, #3A43D1);
    box-shadow: 0 0 0 3px rgba(58, 67, 209, 0.12);
    outline: none;
}

/* Textarea — taller, comfortable line-height */
body.dashv2-active .rc-prof-content textarea.form-control {
    min-height: 96px;
    line-height: 1.5;
    resize: vertical;
}

/* Form-text helper (under inputs) */
body.dashv2-active .rc-prof-content .form-text {
    color: var(--rc-prof-text-muted, #8A8DA8);
    font-size: 13px;
    margin-top: 6px;
}

/* Bio character counter (Phase 3c-introduced span) */
body.dashv2-active .rc-prof-content .rc-prof-form-counter {
    display: block;
    font-size: 12px;
    color: var(--rc-prof-text-muted, #8A8DA8);
    text-align: right;
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
}

/* Form check (favorites_public toggle) — proper switch styling */
body.dashv2-active .rc-prof-content .form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--rc-prof-surface-tint, rgba(58, 67, 209, 0.03));
    border-radius: 10px;
    margin: 0;
}
body.dashv2-active .rc-prof-content .form-check-input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 2px 0 0 0;
    cursor: pointer;
    border: 1.5px solid var(--rc-prof-border-strong, #C9CADB);
    border-radius: 4px;
}
body.dashv2-active .rc-prof-content .form-check-input:checked {
    background-color: var(--rc-aurora, #3A43D1);
    border-color: var(--rc-aurora, #3A43D1);
}
body.dashv2-active .rc-prof-content .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(58, 67, 209, 0.12);
    border-color: var(--rc-aurora, #3A43D1);
}
body.dashv2-active .rc-prof-content .form-check-label {
    cursor: pointer;
    flex: 1;
    margin: 0;
}
body.dashv2-active .rc-prof-content .rc-prof-form-check-title {
    display: block;
    color: var(--rc-prof-text-primary, #15006D);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
body.dashv2-active .rc-prof-content .rc-prof-form-check-helper {
    display: block;
    color: var(--rc-prof-text-muted, #8A8DA8);
    font-size: 13px;
    line-height: 1.5;
}

/* Avatar picker block (existing .attach-img markup) */
body.dashv2-active .rc-prof-content .attach-img {
    padding: 16px;
    background: var(--rc-prof-surface-tint, rgba(58, 67, 209, 0.03));
    border-radius: 10px;
    margin-bottom: 4px;
}
body.dashv2-active .rc-prof-content .attach-img-preview {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(21, 0, 109, 0.12);
}
body.dashv2-active .rc-prof-content .attach-img-button {
    background: #ffffff;
    border: 1.5px solid var(--rc-prof-border, #E8E9F2);
    color: var(--rc-prof-text-primary, #15006D);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
}
body.dashv2-active .rc-prof-content .attach-img-button:hover {
    border-color: var(--rc-aurora, #3A43D1);
    color: var(--rc-aurora, #3A43D1);
    background: #ffffff;
}

/* Primary button — Aurora, matches header */
body.dashv2-active .rc-prof-content .btn-primary {
    background: var(--rc-aurora, #3A43D1);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.15s ease;
    min-height: 44px;
    box-shadow: 0 1px 3px rgba(58, 67, 209, 0.16);
}
body.dashv2-active .rc-prof-content .btn-primary:hover,
body.dashv2-active .rc-prof-content .btn-primary:focus {
    background: var(--rc-aurora-strong, #2D36C2);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(58, 67, 209, 0.24);
    transform: translateY(-1px);
}
body.dashv2-active .rc-prof-content .btn-primary:active {
    transform: translateY(0);
}

/* Outline-primary (e.g. 2FA copy button) */
body.dashv2-active .rc-prof-content .btn-outline-primary {
    background: #ffffff;
    border: 1.5px solid var(--rc-aurora, #3A43D1);
    color: var(--rc-aurora, #3A43D1);
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 500;
}
body.dashv2-active .rc-prof-content .btn-outline-primary:hover {
    background: var(--rc-aurora, #3A43D1);
    color: #ffffff;
}

/* Light button (e.g. 2FA disable) */
body.dashv2-active .rc-prof-content .btn-light {
    background: var(--rc-prof-surface-tint, rgba(58, 67, 209, 0.03));
    border: 1.5px solid var(--rc-prof-border, #E8E9F2);
    color: var(--rc-prof-text-primary, #15006D);
    border-radius: 10px;
    font-weight: 500;
}

/* Danger button (account deletion) — error tone, confident */
body.dashv2-active .rc-prof-content .btn-danger {
    background: #ffffff;
    border: 1.5px solid var(--rc-prof-error, #D85A30);
    color: var(--rc-prof-error, #D85A30);
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    min-height: 44px;
    transition: all 0.15s ease;
}
body.dashv2-active .rc-prof-content .btn-danger:hover,
body.dashv2-active .rc-prof-content .btn-danger:focus {
    background: var(--rc-prof-error, #D85A30);
    border-color: var(--rc-prof-error, #D85A30);
    color: #ffffff;
}

/* Account deletion section — warning context */
body.dashv2-active .rc-prof-content .card:last-of-type .card-header {
    color: var(--rc-prof-error, #D85A30);
}

/* Muted text (used in 2FA description) */
body.dashv2-active .rc-prof-content .text-muted {
    color: var(--rc-prof-text-muted, #8A8DA8) !important;
    line-height: 1.6;
}

/* Input group (2FA secret copy) */
body.dashv2-active .rc-prof-content .input-group .form-control {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
body.dashv2-active .rc-prof-content .input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Mobile — single column already via Bootstrap .col-12; just bump touch targets */
@media (max-width: 767.98px) {
    body.dashv2-active .rc-prof-content {
        max-width: none;
    }
    body.dashv2-active .rc-prof-content .card-body {
        padding: 20px;
    }
    body.dashv2-active .rc-prof-content .form-control,
    body.dashv2-active .rc-prof-content .form-select {
        font-size: 16px; /* prevents iOS zoom-on-focus */
    }
    body.dashv2-active .rc-prof-content .btn-primary,
    body.dashv2-active .rc-prof-content .btn-danger {
        width: 100%;
    }
}
/* End Deploy D append */

/* ============================================================
   Deploy E — KYC Verification v2 hero (kyc-v2)
   Brand call-to-action card shown above the upload form on v2.
   Reuses verified-badge-v2 SVG (currentColor) sized by parent.
   Scoped to body.dashv2-active — legacy untouched.
   ============================================================ */

/* Hero card — sits above the upload form */
body.dashv2-active .rc-prof-content .rc-kyc-hero {
    background: var(--rc-prof-surface, #ffffff);
    border: 1px solid var(--rc-prof-border, #E8E9F2);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(21, 0, 109, 0.04), 0 1px 2px rgba(21, 0, 109, 0.03);
    padding: 36px 24px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative Aurora-tint glow behind the badge */
body.dashv2-active .rc-prof-content .rc-kyc-hero::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(58, 67, 209, 0.08) 0%,
        rgba(58, 67, 209, 0) 70%
    );
    pointer-events: none;
    z-index: 0;
}

/* Badge wrapper — Aurora outline color treatment via currentColor */
body.dashv2-active .rc-prof-content .rc-kyc-hero__badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    color: var(--rc-aurora, #3A43D1);
    margin: 0 auto 20px;
    line-height: 1;
}
body.dashv2-active .rc-prof-content .rc-kyc-hero__badge .rc-verified-badge-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Hero title — Royal, prominent */
body.dashv2-active .rc-prof-content .rc-kyc-hero__title {
    position: relative;
    z-index: 1;
    color: var(--rc-prof-text-primary, #15006D);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

/* Hero body text — readable, muted */
body.dashv2-active .rc-prof-content .rc-kyc-hero__body {
    position: relative;
    z-index: 1;
    color: var(--rc-prof-text-muted, #8A8DA8);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 480px;
}

/* Mobile — slightly tighter */
@media (max-width: 767.98px) {
    body.dashv2-active .rc-prof-content .rc-kyc-hero {
        padding: 28px 20px;
    }
    body.dashv2-active .rc-prof-content .rc-kyc-hero__badge {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }
    body.dashv2-active .rc-prof-content .rc-kyc-hero__title {
        font-size: 20px;
    }
    body.dashv2-active .rc-prof-content .rc-kyc-hero__body {
        font-size: 14px;
    }
    body.dashv2-active .rc-prof-content .rc-kyc-hero::before {
        width: 160px;
        height: 160px;
        top: -32px;
    }
}

/* Polish for kyc-verified + kyc-pending partials inheriting Deploy D's card chrome —
   ensure their stock illustrations sit nicely in the v2 card */
body.dashv2-active .rc-prof-content .text-center.p-5 {
    padding: 36px 24px !important;  /* slightly less aggressive than Bootstrap p-5 */
}
body.dashv2-active .rc-prof-content .text-center.p-5 h4 {
    color: var(--rc-prof-text-primary, #15006D);
    font-size: 22px;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 10px;
}
body.dashv2-active .rc-prof-content .text-center.p-5 p {
    color: var(--rc-prof-text-muted, #8A8DA8);
    font-size: 15px;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

/* KYC upload form — h6 section labels (Front/Back of ID, Passport)
   inherit Deploy D's form styling for inputs/cards. Just add a small treatment
   for the h6 labels to match Royal hierarchy. */
body.dashv2-active .rc-prof-content .attach-img h6 {
    color: var(--rc-prof-text-primary, #15006D);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
}

/* The KYC form's "attach-img" border-rounded boxes need slightly different treatment
   than Deploy D's Settings .attach-img (avatar-picker). Override here for the file
   upload contexts (front_of_id, back_of_id, passport, selfie). */
body.dashv2-active .rc-prof-content .attach-img.border {
    background: #ffffff;  /* override Deploy D's tinted background for upload boxes */
    border: 1.5px dashed var(--rc-prof-border-strong, #C9CADB) !important;
    border-radius: 10px !important;
    padding: 16px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
body.dashv2-active .rc-prof-content .attach-img.border:hover {
    border-color: var(--rc-aurora, #3A43D1) !important;
    background: var(--rc-prof-surface-tint, rgba(58, 67, 209, 0.03));
}
/* End Deploy E append */

/* ============================================================
   Phase 4 polish — Bootstrap switch styling for favorites_public toggle
   Bootstrap renders .form-check.form-switch as an iOS-style switch.
   Brand it: Aurora when on, soft Royal-tint when off.
   Scoped to body.dashv2-active — legacy untouched.
   ============================================================ */

/* The switch container needs a left padding for Bootstrap's switch positioning */
body.dashv2-active .rc-prof-content .form-check.form-switch {
    padding-left: 16px;  /* override Deploy D's flex+gap layout for switch context */
}

/* The switch itself — override Deploy D's checkbox-flavored rules */
body.dashv2-active .rc-prof-content .form-check.form-switch .form-check-input {
    width: 40px;
    height: 22px;
    margin-top: 2px;
    margin-left: 0;
    margin-right: 12px;
    border-radius: 22px;
    border: 1.5px solid var(--rc-prof-border-strong, #C9CADB);
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23C9CADB'/%3e%3c/svg%3e");
    background-position: left center;
    background-size: contain;
    background-repeat: no-repeat;
    transition: background-position 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    flex-shrink: 0;
}

/* Switch ON state — Aurora fill + white knob */
body.dashv2-active .rc-prof-content .form-check.form-switch .form-check-input:checked {
    background-color: var(--rc-aurora, #3A43D1);
    border-color: var(--rc-aurora, #3A43D1);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e");
    background-position: right center;
}

/* Hover affordance */
body.dashv2-active .rc-prof-content .form-check.form-switch .form-check-input:hover:not(:checked) {
    border-color: var(--rc-aurora, #3A43D1);
}
body.dashv2-active .rc-prof-content .form-check.form-switch .form-check-input:checked:hover {
    background-color: var(--rc-aurora-strong, #2D36C2);
    border-color: var(--rc-aurora-strong, #2D36C2);
}

/* Focus ring — accessibility */
body.dashv2-active .rc-prof-content .form-check.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(58, 67, 209, 0.15);
    outline: none;
}

/* End Phase 4 polish */
