/* ─── BASE ────────────────────────────────────────────────────────────────── */
body {
  background: #e2daff !important;
  background: linear-gradient(160deg, #ded6ff 0%, #e4deff 60%, #d9d0ff 100%) !important;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, a, p, input, label, span, placeholder, li, button {
  font-family: "Inter", sans-serif;
}

/* ─── FONT WEIGHTS ───────────────────────────────────────────────────────── */
.fw900 { font-weight: 900; }
.fw700 { font-weight: 700; }
.fw400 { font-weight: 400; }
.fw100 { font-weight: 100; }

/* ─── INPUTS ─────────────────────────────────────────────────────────────── */
input, textarea {
  display: block;
  width: 100%;
  padding: 15px;
  border: 1.5px solid #c9beff;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #7b59ff;
  box-shadow: 0 0 0 3px rgba(123, 89, 255, 0.15);
}

label { margin-bottom: 0px; }

/* ─── PRODUCT LISTING CARDS ─────────────────────────────────────────────── */
.element {
  transition: all 0.25s ease;
  position: relative;
  background: #ffffff;
  border: 1px solid #e8e1ff !important;
  border-radius: 14px !important;
}

.element:hover {
  background-color: #f5f0ff;
  border-color: #c9b8ff !important;
  box-shadow: 0 4px 20px rgba(80, 31, 255, 0.1) !important;
  transform: translateY(-1px);
}

/* ─── OLD SCORE BUTTON ───────────────────────────────────────────────────── */
.score {
  border: none;
  background-color: white;
  transition-duration: 400ms;
  height: 100% !important;
}
.score:hover { background-color: #f5f0ff; }

/* ─── VOTE CARD ──────────────────────────────────────────────────────────── */
.vote-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  border-radius: 12px;
  background: #ede8ff;
  color: #501fff;
  min-width: 62px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}
.vote-card:hover {
  background: linear-gradient(160deg, #0f0630 0%, #1a0a5e 50%, #0d0528 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(80, 31, 255, 0.3);
}
.vote-card.voted {
  background: linear-gradient(160deg, #0f0630 0%, #1a0a5e 50%, #0d0528 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(80, 31, 255, 0.3);
}
.vote-card.voted:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}
.vote-card .vc-icon  { font-size: 18px; line-height: 1; }
.vote-card .vc-score { font-size: 17px; font-weight: 800; line-height: 1; }
.vote-card .vc-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  opacity: 0.8;
}

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  border-radius: 10px;
}

/* Brand purple — overrides Bootstrap primary everywhere */
.btn-primary {
  background: linear-gradient(160deg, #0f0630 0%, #1a0a5e 50%, #0d0528 100%) !important;
  border-color: #501fff !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #6a45ff 0%, #3f0fee 100%) !important;
  border-color: #3f0fee !important;
  box-shadow: 0 4px 14px rgba(80, 31, 255, 0.35) !important;
}

.btn-brand {
  background: linear-gradient(160deg, #0f0630 0%, #1a0a5e 50%, #0d0528 100%);
  color: #fff !important;
  font-weight: 700;
  border-radius: 10px;
}
.btn-brand:hover {
  background: linear-gradient(135deg, #6a45ff 0%, #3f0fee 100%);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(80, 31, 255, 0.3);
}
.btn-brand-light {
  background: #ede8ff;
  color: #501fff;
  font-weight: 700;
}

/* ─── NAVBAR ─────────────────────────────────────────────────────────────── */
.navbar {
  background: #7b59ff;
  background: linear-gradient(160deg, #0f0630 0%, #1a0a5e 50%, #0d0528 100%);
  color: white !important;
}

/* ═══════════════════════════════════════
   NAVBAR  — premium redesign
═══════════════════════════════════════ */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: "Inter", sans-serif;
  /* frosted-glass dark */
  background: rgba(10, 4, 38, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(123, 89, 255, 0.22);
  box-shadow: 0 1px 0 rgba(123,89,255,.12), 0 8px 32px rgba(0,0,0,.45);
}

.site-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 8px;
}

/* ── Logo ── */
.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-brand:hover { opacity: 0.85; }
.nav-brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* ── Desktop right group ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* plain text nav links */
.nav-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.nav-link-pill:hover {
  color: #fff;
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.12);
}
.nav-link-pill i { font-size: 12px; opacity: .85; }

/* ── "Add Product" CTA ── */
.nav-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7b59ff 0%, #501fff 100%);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.01em;
  box-shadow: 0 2px 12px rgba(80,31,255,.5), inset 0 1px 0 rgba(255,255,255,.18);
  transition: box-shadow .2s, transform .2s, filter .2s;
}
.nav-link-cta:hover {
  color: #fff;
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(80,31,255,.6), inset 0 1px 0 rgba(255,255,255,.18);
}
.nav-link-cta i { font-size: 12px; }

/* separator dot between links */
.nav-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,.15);
  margin: 0 4px;
  flex-shrink: 0;
}

/* ── User dropdown toggle ── */
.nav-avatar { flex-shrink: 0; overflow: hidden; }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, border-color .18s;
  letter-spacing: -.01em;
}
.nav-dropdown-toggle:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.nav-dropdown-toggle .fa-chevron-down { font-size: 9px; opacity: .6; }

/* ── Dropdown menu ── */
.dropdown-menu {
  border-radius: 14px;
  border: 1px solid rgba(123,89,255,.2);
  box-shadow: 0 12px 40px rgba(0,0,0,.25), 0 0 0 1px rgba(123,89,255,.06);
  padding: 6px;
  min-width: 190px;
  background: #fff;
  margin-top: 8px !important;
}
.dropdown-item {
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 12px;
  color: #1e1b4b;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
}
.dropdown-item:hover { background: #f3f0ff; color: #501fff; }
.dropdown-item i { width: 16px; text-align: center; opacity: .65; }
.dropdown-divider { margin: 5px 0; border-color: #f0ebff; }

/* ── Mobile toggler ── */
.nav-toggler {
  display: none;
  border: none;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 17px;
  border-radius: 9px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s;
  flex-shrink: 0;
}
.nav-toggler:hover { background: rgba(255,255,255,.2); }

/* ── Mobile menu ── */
.mobile-menu {
  display: none;
  background: #0a0426;
  border-top: 1px solid rgba(123,89,255,.2);
  padding: 10px 16px 18px;
}
.mobile-menu.open { display: block; }
.mobile-menu .nav-link-pill {
  display: flex;
  width: 100%;
  margin-bottom: 4px;
  font-size: 14.5px;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.mobile-menu .nav-link-pill:hover { background: rgba(255,255,255,.1); color: #fff; }
.mobile-menu .nav-link-cta {
  display: flex;
  width: 100%;
  margin-bottom: 4px;
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 10px;
  justify-content: center;
}
.mobile-divider { border-color: rgba(255,255,255,.12); margin: 8px 0; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .nav-right   { display: none; }
  .nav-toggler { display: inline-flex; }
}
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
}

/* ── Legacy compat ── */
.embed-page { padding: 61px !important; }
.btn-outline-brand {
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.88);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  background: rgba(255,255,255,.08);
}
.btn-outline-brand:hover { color: #fff; background: rgba(255,255,255,.18); }
.btn-brand2 {
  padding: 8px 16px;
  background: white;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  color: #501fff;
  font-size: 14px;
}

/* ─── CARDS — global tint ────────────────────────────────────────────────── */
.card {
  border: 1px solid #e4deff !important;
  border-radius: 14px !important;
}

/* ─── DATE SECTION HEADERS ───────────────────────────────────────────────── */
.date-section-header {
  background: linear-gradient(135deg, #1a0a5e 0%, #0f0630 100%);
  color: #fff;
  border-radius: 12px;
  padding: 10px 18px;
}

/* ─── MISC ───────────────────────────────────────────────────────────────── */
.white-bold {
  color: white !important;
  font-weight: 900;
  font-size: 1.5rem;
  text-shadow: 0 0 5px black;
}
.sub-meta   { position: absolute; bottom: 0; left: 0; }
.twitter    { opacity: 0.2; }
.twitter:hover { opacity: 1; }
.cursor     { cursor: pointer; }
.bg-blue    { background-color: #ede8ff; }

.shadow {
  box-shadow: 0 4px 18px rgba(80, 31, 255, 0.12), 0 1px 4px rgba(80, 31, 255, 0.08) !important;
}

.description img { max-width: 100%; }

.nav-add {
  width: 48px;
  height: 48px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23FFFFFF'%3E%3Cpath d='M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm4 10h-3v3.13c0 .48-.39.88-.88.88h-.25c-.48-.01-.87-.4-.87-.88V13H8c-.55 0-1-.45-1-1s.45-1 1-1h3V7.88c0-.49.39-.88.88-.88h.25c.48 0 .87.39.87.88V11h3c.55 0 1 .45 1 1s-.45 1-1 1z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
  background-size: 48px 48px;
  background-position: center center;
  background-repeat: no-repeat;
}

.w48 { width: 110px; height: 48px; }

.comment-text { font-size: 18px; font-weight: 400; }
.logo { max-width: 34px; margin-right: 5px; }
.top-corner { position: absolute; top: 15px; right: 15px; }

.CodeMirror,
.CodeMirror-scroll { min-height: 200px; }

.namelink  { font-weight: 700; }
.navylink  { background: white; color: black; padding: 10px; font-size: 1.2rem; }
.w-24      { width: 24px; }

.toast {
  z-index: 999999;
  position: fixed !important;
  top: 60px !important;
  right: 20px !important;
  background-color: white;
  border: 2px solid #7b59ff;
  width: 600px !important;
}

.comment-image {
  width: 50px;
  height: 50px;
  border-radius: 25px;
}

.category {
  display: inline;
  margin: 7px;
  padding: 5px 35px;
  background: #ede8ff;
  border: 1px solid #c9b8ff;
  border-radius: 30px;
  color: #501fff;
}

/* ════════════════════════════════════════════════
   PRODUCT GALLERY — FLICKITY CAROUSEL
   Relies on Flickity v2 loaded globally in app layout.
   Active-slide state driven purely by CSS (.is-selected),
   no inline JS overrides needed.
════════════════════════════════════════════════ */

/* Outer wrapper */
.flk-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: #0d0a1f;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(123, 89, 255, 0.18);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.45);
  padding-bottom: 44px; /* room for dots row */
  max-height: 520px;    /* cap so full-page screenshots don't dominate */
}

/* Flickity root element */
.flk-gallery.flickity-enabled {
  outline: none;
  padding-top: 12px;
}

/* ── Slides ── */
.flk-cell {
  width: 88%;
  margin-right: 12px;
  border-radius: 12px;
  overflow: hidden;
  /* inactive state */
  opacity: 0.45;
  transform: scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform, opacity;
  cursor: pointer;
  box-shadow: none;
}

/* active state — Flickity adds .is-selected to the current cell */
.flk-cell.is-selected {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 6px 28px rgba(80, 31, 255, 0.28);
}

.flk-cell img {
  display: block;
  width: 100%;
  height: 420px;       /* fixed height so any screenshot is the same size */
  max-height: 420px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
}

/* ── Avatar slide fallback (no image) ── */
.flk-cell-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 420px;
  border-radius: 12px;
}
.flk-cell-avatar span {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
  text-shadow: 0 2px 12px rgba(0,0,0,.22);
  user-select: none;
}
.flk-single-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 420px;
  border-radius: 16px;
}
.flk-single-avatar span {
  font-size: clamp(40px, 10vw, 96px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
  text-shadow: 0 2px 14px rgba(0,0,0,.22);
  user-select: none;
}

/* ── Prev / Next buttons ── */
.flk-wrap .flickity-prev-next-button {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.93) !important;
  border: none;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.32) !important;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}
.flk-wrap .flickity-prev-next-button:hover {
  background: #501fff !important;
  box-shadow: 0 6px 24px rgba(80, 31, 255, 0.5) !important;
  transform: translateY(-50%) scale(1.1) !important;
}
.flk-wrap .flickity-prev-next-button .flickity-button-icon {
  fill: #1e1b4b;
  transition: fill 0.2s ease;
}
.flk-wrap .flickity-prev-next-button:hover .flickity-button-icon {
  fill: #fff;
}

/* ── Page dots ── */
.flk-wrap .flickity-page-dots {
  /* negative value pushes dots below the flickity viewport
     (image area) and into the wrapper's padding-bottom space */
  bottom: -34px;
}
.flk-wrap .flickity-page-dots .dot {
  width: 7px;
  height: 7px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
  border-radius: 99px;
  transition: background 0.22s ease, width 0.25s ease;
}
.flk-wrap .flickity-page-dots .dot.is-selected {
  background: #7b59ff;
  width: 22px;
  box-shadow: 0 0 8px rgba(123, 89, 255, 0.6);
}

/* ── Single-image fallback (no Flickity) ── */
.flk-wrap--single {
  padding-bottom: 0;
  max-height: 460px;
}
.flk-single {
  width: 100%;
}
.flk-single img {
  display: block;
  width: 100%;
  height: 420px;
  max-height: 420px;
  object-fit: cover;
  object-position: center top;
}

/* ── Responsive ── */
@media (min-width: 1024px) {
  .flk-cell { width: 88%; }
}
@media (max-width: 768px) {
  .flk-cell { width: 92%; margin-right: 10px; }
  .flk-cell img, .flk-cell-avatar, .flk-single img, .flk-single-avatar { height: 260px; max-height: 260px; }
  .flk-wrap, .flk-wrap--single { max-height: 320px; }
  .flk-wrap .flickity-prev-next-button { width: 36px; height: 36px; }
}
@media (max-width: 480px) {
  .flk-cell { width: 88%; margin-right: 8px; }
  .flk-wrap .flickity-prev-next-button { width: 32px; height: 32px; }
  .flk-wrap { border-radius: 12px; }
}

/* ════════════════════════════════════════════════
   REVIEWS
════════════════════════════════════════════════ */

/* ══════════════════════════════════════════
   RATING SUMMARY  — premium redesign
══════════════════════════════════════════ */
.rv-summary {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr 210px;
  gap: 0;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #e8e1ff;
  border-radius: 22px;
  overflow: hidden;
  margin: 32px 0 24px;
  box-shadow: 0 4px 24px rgba(80,31,255,.08), 0 1px 4px rgba(0,0,0,.05);
}

/* Decorative background orb */
.rv-glow-orb {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,89,255,.07) 0%, transparent 70%);
  top: -80px;
  left: -40px;
  pointer-events: none;
}

/* ── Col 1: Score ── */
.rv-score-box {
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-right: 1px solid #e8e1ff;
  position: relative;
  z-index: 1;
  background: #f8f5ff;
}
.rv-big-num {
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
  color: #1e1b4b;
  letter-spacing: -4px;
  text-shadow: none;
}
.rv-big-num--empty {
  font-size: 48px;
  color: #c4b5fd;
  letter-spacing: -2px;
}
.rv-stars-row {
  display: flex;
  gap: 3px;
  margin: 10px 0 8px;
}
.rv-total-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: .2px;
}

/* ── Col 2: Bars ── */
.rv-dist {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 30px 32px;
  position: relative;
  z-index: 1;
  background: #fff;
}
.rv-dist-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rv-dist-num {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  width: 10px;
  text-align: right;
  flex-shrink: 0;
}
.rv-dist-star-icon {
  font-size: 10px;
  color: #f59e0b;
  flex-shrink: 0;
}
.rv-bar-track {
  flex: 1;
  height: 7px;
  background: #ede9fe;
  border-radius: 99px;
  overflow: hidden;
}
.rv-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 99px;
  transition: width 1s cubic-bezier(.4,0,.2,1);
  min-width: 0;
  box-shadow: none;
}
.rv-dist-pct {
  font-size: 11px;
  color: #94a3b8;
  width: 18px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Col 3: CTA ── */
.rv-cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 24px;
  border-left: 1px solid #e8e1ff;
  text-align: center;
  background: #f8f5ff;
  position: relative;
  z-index: 1;
}
.rv-cta-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 2px;
}
.rv-cta-star {
  color: #f59e0b;
  font-size: 18px;
  animation: rv-star-pop .5s ease both;
}
@keyframes rv-star-pop {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  70%  { transform: scale(1.2) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.rv-cta-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e1b4b;
  margin: 0;
  line-height: 1.35;
}
.rv-cta-sub {
  font-size: 11.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}
.rv-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #501fff, #7b59ff);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(80,31,255,.25);
  transition: transform .18s, box-shadow .18s, filter .18s;
  white-space: nowrap;
  margin-top: 4px;
}
.rv-cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(80,31,255,.35);
  color: #fff;
}
/* Done state */
.rv-cta-done { background: #f0fdf4; }
.rv-done-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #22c55e;
  margin-bottom: 4px;
}

/* common star colours */
.rv-star-on  { color: #f59e0b; }
.rv-star-off { color: #e2e8f0; }

/* ── Write-review form ── */
.rv-form-wrap {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 28px;
}
.rv-form-title { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0 0 16px; }
.rv-success-msg {
  background: #ecfdf5; border: 1px solid #6ee7b7;
  color: #065f46; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; font-weight: 500;
  margin-bottom: 14px;
}

/* star picker */
.rv-star-picker { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.rv-pick-star {
  background: none; border: none; padding: 2px; cursor: pointer;
  font-size: 28px;
  color: #e2e8f0;
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 1;
}
.rv-pick-star.active,
.rv-pick-star.hovered { color: #f59e0b; }
.rv-pick-star:hover    { transform: scale(1.15); }
.rv-pick-hint { font-size: 12px; color: #94a3b8; margin-left: 6px; }
.rv-field-err { font-size: 12px; color: #ef4444; margin: -8px 0 10px; }

.rv-textarea {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 14px;
  display: block;
  box-sizing: border-box;
}
.rv-textarea:focus { border-color: #7b59ff; }

.rv-submit-btn {
  background: linear-gradient(135deg, #501fff, #7b59ff);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  font-family: "Inter", sans-serif;
}
.rv-submit-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.rv-submit-btn:not(:disabled):hover { box-shadow: 0 4px 16px rgba(80,31,255,.35); }

/* ── Three-dot review menu ── */
.rv-card { position: relative; }
.rv-card-own { border-color: #c4b5fd; background: #faf8ff; }

.rv-you-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  background: #ede9fe; color: #501fff;
  border-radius: 99px; padding: 1px 7px;
  margin-left: 6px; vertical-align: middle;
}
.rv-menu {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}
.rv-menu-btn {
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 16px;
  transition: background 0.15s, color 0.15s;
}
.rv-menu-btn:hover { background: #f1f5f9; color: #475569; }
.rv-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 160px;
  z-index: 50;
  overflow: hidden;
  display: none;
}
.rv-dropdown.rv-dropdown-open { display: block; }
.rv-drop-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; background: none; border: none;
  padding: 10px 14px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; text-align: left;
  font-family: "Inter", sans-serif;
  transition: background 0.15s;
}
.rv-drop-item:hover { background: #f8fafc; }
.rv-drop-danger { color: #ef4444; }
.rv-drop-danger:hover { background: #fff1f2; }

/* ── Review list ── */
.rv-list { display: flex; flex-direction: column; gap: 14px; }
.rv-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color 0.2s;
}
.rv-card:hover { border-color: #c4b5fd; }
.rv-card-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rv-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid #ede9fe;
}
.rv-reviewer-name { font-size: 14px; font-weight: 700; color: #0f172a; display: block; }
.rv-card-stars { display: flex; align-items: center; gap: 3px; margin-top: 3px; font-size: 12px; }
.rv-card-date { font-size: 11px; color: #94a3b8; margin-left: 8px; }
.rv-card-body { font-size: 14px; color: #475569; margin: 0; line-height: 1.6; }

/* guest join CTA */
.rv-join-cta {
  display: flex; align-items: center; gap: 10px;
  background: #f8f7ff; border: 1px dashed #c4b5fd;
  border-radius: 12px; padding: 16px 20px;
  font-size: 14px; color: #64748b;
  margin-bottom: 24px;
}
.rv-join-cta i { color: #f59e0b; font-size: 20px; }
.rv-join-cta a { color: #501fff; font-weight: 600; text-decoration: none; }
.rv-join-cta a:hover { text-decoration: underline; }

/* ── Cancel edit button ── */
.rv-cancel-btn {
  background: none;
  border: 1.5px solid #e2e8f0;
  border-radius: 99px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.rv-cancel-btn:hover { border-color: #c4b5fd; color: #501fff; }

/* ════════════════════════════════════════════════
   ANALYTICS TAB (inline)
════════════════════════════════════════════════ */
.ana-hd {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.ana-title {
  font-size: 19px; font-weight: 800; color: #1e1b4b;
  margin: 0 0 3px; display: flex; align-items: center; gap: 8px;
}
.ana-title i { color: #501fff; }
.ana-subtitle { font-size: 12px; color: #94a3b8; margin: 0; }
.ana-pills { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.ana-pill {
  padding: 6px 15px; border-radius: 99px;
  border: 1.5px solid #e2e8f0; background: #fff;
  font-size: 12px; font-weight: 600; color: #64748b;
  cursor: pointer; transition: all .18s;
}
.ana-pill:hover { border-color: #c4b5fd; color: #501fff; }
.ana-pill.is-active {
  background: linear-gradient(135deg, #501fff, #7b59ff);
  border-color: transparent; color: #fff;
  box-shadow: 0 3px 10px rgba(80,31,255,.25);
}

/* stat boxes */
.ana-stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px;
}
.ana-stat-box {
  background: #fff; border: 1px solid #e8e1ff; border-radius: 16px;
  padding: 16px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  box-shadow: 0 2px 8px rgba(80,31,255,.05);
}
.ana-stat-ico {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  background: var(--ic-bg); color: var(--ic-col);
}
.ana-stat-val { font-size: 24px; font-weight: 800; color: #1e1b4b; line-height: 1; }
.ana-stat-lbl { font-size: 11px; color: #94a3b8; font-weight: 500; }

/* chart card */
.ana-chart-card {
  background: #fff; border: 1px solid #e8e1ff; border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(80,31,255,.06);
}
.ana-chart-inner { position: relative; min-height: 260px; display: flex; align-items: center; justify-content: center; }
.ana-chart-inner canvas { width: 100% !important; height: 240px !important; }
.ana-loading { display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 13px; }
.ana-no-data {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #94a3b8; font-size: 13px; text-align: center;
}
.ana-no-data i { font-size: 32px; color: #e2e8f0; }
.ana-no-data p { margin: 0; }

@media (max-width: 640px) {
  .ana-stat-row { grid-template-columns: repeat(2, 1fr); }
  .ana-hd { flex-direction: column; }
}

/* responsive */
@media (max-width: 600px) {
  .rv-summary { grid-template-columns: 1fr; }
  .rv-score-box { border-right: none; border-bottom: 1px solid #e8e1ff; flex-direction: row; gap: 20px; padding: 24px 20px; }
  .rv-big-num { font-size: 52px; }
  .rv-dist { padding: 20px 20px; border-bottom: 1px solid #e8e1ff; }
  .rv-cta-card { border-left: none; padding: 24px 20px; }
  .rv-form-wrap { padding: 18px; }
}
