/* Extracted from templates/fragments/reviews.html */
/* ── Carousel wrapper ─────────────────────────────────── */
    .rv-carousel-wrap {
      position: relative;
      margin: 0 -1rem;
    }

    .rv-track {
      display: flex;
      gap: 1rem;
      overflow-x: auto;
      scroll-behavior: smooth;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      padding: 1rem 3.5rem;
      cursor: grab;
    }

    .rv-track:active {
      cursor: grabbing;
    }

    .rv-track::-webkit-scrollbar {
      display: none;
    }

    /* ── Fade edges ─────────────────────────────────────── */
    .rv-fade {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 80px;
      z-index: 2;
      pointer-events: none;
    }

    .rv-fade-left {
      left: 0;
      background: linear-gradient(to right, var(--bg-base, #0a1628), transparent);
    }

    .rv-fade-right {
      right: 0;
      background: linear-gradient(to left, var(--bg-base, #0a1628), transparent);
    }

    /* ── Nav arrows ─────────────────────────────────────── */
    .rv-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 3;
      width: 36px;
      height: 36px;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(15, 23, 42, 0.8);
      backdrop-filter: blur(8px);
      color: #94a3b8;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.8rem;
      transition: all 0.2s;
    }

    .rv-nav:hover {
      background: rgba(6, 182, 212, 0.15);
      border-color: rgba(6, 182, 212, 0.4);
      color: #06b6d4;
    }

    .rv-nav-prev {
      left: 0.5rem;
    }

    .rv-nav-next {
      right: 0.5rem;
    }

    /* ── Card ──────────────────────────────────────────── */
    .rv-card {
      flex: 0 0 300px;
      background: rgba(15, 23, 42, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.07);
      border-radius: 16px;
      padding: 1.1rem;
      cursor: pointer;
      transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
      user-select: none;
      backdrop-filter: blur(4px);
    }

    .rv-card:hover {
      border-color: rgba(6, 182, 212, 0.35);
      transform: translateY(-3px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    .rv-card-top {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      margin-bottom: 0.7rem;
    }

    .rv-avatar {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 1rem;
      color: #fff;
      flex-shrink: 0;
    }

    .rv-meta {
      flex: 1;
      min-width: 0;
    }

    .rv-author {
      font-size: 0.82rem;
      font-weight: 700;
      color: #e2e8f0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .rv-role {
      font-size: 0.68rem;
      color: #475569;
      margin-top: 1px;
    }

    .rv-stars-sm {
      font-size: 0.75rem;
      color: #fbbf24;
      white-space: nowrap;
      letter-spacing: 1px;
    }

    .rv-snippet {
      font-size: 0.8rem;
      color: #94a3b8;
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin: 0 0 0.6rem;
    }

    .rv-read-more {
      font-size: 0.72rem;
      color: #06b6d4;
      font-weight: 600;
      letter-spacing: 0.03em;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    /* ── Dots ───────────────────────────────────────────── */
    .rv-dots {
      display: flex;
      justify-content: center;
      gap: 6px;
      margin-top: 1rem;
    }

    .rv-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.15);
      cursor: pointer;
      transition: all 0.25s;
    }

    .rv-dot.active {
      width: 20px;
      border-radius: 3px;
      background: #06b6d4;
    }

    /* ── Modal ──────────────────────────────────────────── */
    .rv-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(5, 10, 20, 0.85);
      backdrop-filter: blur(6px);
      z-index: 10000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s;
    }

    .rv-modal-overlay.open {
      opacity: 1;
      pointer-events: auto;
    }

    .rv-modal {
      background: rgba(15, 23, 42, 0.98);
      border: 1px solid rgba(6, 182, 212, 0.2);
      border-radius: 20px;
      padding: 2rem;
      max-width: 520px;
      width: 100%;
      max-height: 85vh;
      overflow-y: auto;
      position: relative;
      transform: translateY(16px) scale(0.97);
      transition: transform 0.25s ease;
      scrollbar-width: thin;
      scrollbar-color: rgba(6, 182, 212, 0.3) transparent;
    }

    .rv-modal-overlay.open .rv-modal {
      transform: translateY(0) scale(1);
    }

    .rv-modal-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      width: 32px;
      height: 32px;
      color: #64748b;
      cursor: pointer;
      font-size: 0.9rem;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s;
    }

    .rv-modal-close:hover {
      color: #f87171;
      border-color: rgba(248, 113, 113, 0.3);
    }

    .rv-modal-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.25rem;
    }

    .rv-modal-avatar {
      width: 52px;
      height: 52px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 1.4rem;
      color: #fff;
      flex-shrink: 0;
    }

    .rv-modal-author {
      font-size: 1rem;
      font-weight: 700;
      color: #e2e8f0;
    }

    .rv-modal-role {
      font-size: 0.78rem;
      color: #475569;
      margin-top: 2px;
    }

    .rv-modal-stars {
      font-size: 1rem;
      color: #fbbf24;
      letter-spacing: 2px;
      margin-top: 4px;
    }

    .rv-modal-text {
      font-size: 0.92rem;
      color: #94a3b8;
      line-height: 1.8;
      margin: 0 0 1rem;
    }

    .rv-modal-img {
      width: 100%;
      border-radius: 12px;
      margin-top: 0.75rem;
      display: none;
    }

    @media (max-width: 600px) {
      .rv-card {
        flex: 0 0 260px;
      }

      .rv-track {
        padding: 1rem 2.5rem;
      }
    }
