/* Extracted from templates/pages/reviews.html */
/* ══ REVIEWS PAGE ════════════════════════════════════════════ */

      /* Hero banner */
      .rv-page-hero {
        background: linear-gradient(135deg, rgba(26, 86, 219, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 5rem 0 3rem;
        text-align: center;
      }

      .rv-page-hero .section-tag {
        margin: 0 auto 1rem;
        display: inline-block;
      }

      .rv-page-hero h1 {
        font-family: var(--font-display);
        font-size: clamp(1.8rem, 4vw, 2.8rem);
        color: #e2e8f0;
        margin-bottom: 0.5rem;
      }

      /* Rating summary strip */
      .rv-summary {
        display: flex;
        align-items: center;
        gap: 2.5rem;
        background: rgba(15, 23, 42, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 20px;
        padding: 1.75rem 2rem;
        margin: 2.5rem 0;
        flex-wrap: wrap;
      }

      .rv-big-score {
        text-align: center;
        flex-shrink: 0;
      }

      .rv-big-num {
        font-family: var(--font-display);
        font-size: 4rem;
        font-weight: 700;
        background: linear-gradient(135deg, #1a56db, #06b6d4);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        line-height: 1;
      }

      .rv-big-stars {
        font-size: 1.1rem;
        color: #fbbf24;
        letter-spacing: 3px;
        margin: 4px 0;
      }

      .rv-big-count {
        font-size: 0.78rem;
        color: #475569;
      }

      .rv-bars {
        flex: 1;
        min-width: 200px;
        display: flex;
        flex-direction: column;
        gap: 6px;
      }

      .rv-bar-row {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.78rem;
        color: #64748b;
      }

      .rv-bar-label {
        width: 14px;
        text-align: right;
        color: #fbbf24;
        font-weight: 700;
      }

      .rv-bar-track {
        flex: 1;
        height: 6px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 3px;
        overflow: hidden;
      }

      .rv-bar-fill {
        height: 100%;
        border-radius: 3px;
        background: linear-gradient(90deg, #1a56db, #06b6d4);
        transition: width 0.6s ease;
      }

      .rv-bar-pct {
        width: 28px;
        text-align: right;
      }

      /* Review grid */
      .rv-page-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.25rem;
        margin-bottom: 3rem;
      }

      .rv-page-card {
        background: rgba(15, 23, 42, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 16px;
        padding: 1.5rem;
        transition: border-color 0.2s, transform 0.2s;
        display: flex;
        flex-direction: column;
        gap: 1rem;
      }

      .rv-page-card:hover {
        border-color: rgba(6, 182, 212, 0.25);
        transform: translateY(-2px);
      }

      .rv-page-card-head {
        display: flex;
        align-items: center;
        gap: 0.85rem;
      }

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

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

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

      .rv-page-stars {
        font-size: 0.9rem;
        color: #fbbf24;
        letter-spacing: 2px;
        margin-left: auto;
      }

      .rv-page-text {
        font-size: 0.85rem;
        color: #94a3b8;
        line-height: 1.75;
        flex: 1;
      }

      .rv-page-img {
        width: 100%;
        border-radius: 10px;
        object-fit: cover;
        max-height: 200px;
      }

      .rv-page-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 0.7rem;
        color: #334155;
      }

      .rv-page-source {
        display: flex;
        align-items: center;
        gap: 4px;
      }

      .rv-page-source i {
        color: #4285f4;
      }

      /* Empty state */
      .rv-empty {
        text-align: center;
        padding: 4rem 1rem;
        color: #475569;
      }

      .rv-empty i {
        font-size: 3rem;
        margin-bottom: 1rem;
        display: block;
        color: #1e3a5f;
      }

      /* Add review FAB */
      .rv-add-fab {
        position: fixed;
        bottom: 8rem;
        left: 1.5rem; /* Moved to left side */
        z-index: 1000; /* Higher z-index to stay on top */
        display: flex;
        align-items: center;
        gap: 0.6rem;
        background: linear-gradient(135deg, #4f46e5, #7c3aed);
        color: #fff;
        border: none;
        border-radius: 50px;
        padding: 0.75rem 1.2rem;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 4px 18px rgba(124, 58, 237, 0.5);
        transition: transform 0.2s, box-shadow 0.2s;
        font-family: inherit;
      }

      .rv-add-fab:hover {
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 6px 24px rgba(124, 58, 237, 0.65);
      }

      /* Slide-in form panel */
      .rv-panel-overlay {
        position: fixed;
        inset: 0;
        background: rgba(5, 10, 20, 0.75);
        backdrop-filter: blur(4px);
        z-index: 1100; /* Above FAB */
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
      }

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

      .rv-panel {
        position: fixed;
        right: 0;
        top: 80px; /* Leave space for header */
        bottom: 20px; /* Leave space at bottom */
        width: min(480px, 95vw);
        margin-right: min(20px, 2.5vw);
        background: rgba(15, 23, 42, 0.95);
        border: 1px solid rgba(6, 182, 212, 0.2);
        border-radius: 20px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.5);
        z-index: 1200; /* Topmost */
        display: flex;
        flex-direction: column;
        transform: translateX(120%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
      }

      .rv-panel.open {
        transform: translateX(0);
      }

      .rv-panel-head {
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
      }

      .rv-panel-head h3 {
        font-family: var(--font-display);
        font-size: 1.1rem;
        color: #e2e8f0;
        margin: 0;
      }

      .rv-panel-close {
        background: rgba(255,255,255,0.05);
        border: none;
        color: #94a3b8;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
      }

      .rv-panel-close:hover {
        background: rgba(239, 68, 68, 0.2);
        color: #f87171;
      }

      .rv-panel-body {
        padding: 1.5rem;
        flex: 1;
        overflow-y: auto;
      }

      /* Star rating picker — uses direction:rtl so ~ selector highlights "up to" */
      .rv-star-pick {
        display: flex;
        gap: 6px;
        margin-bottom: 1.25rem;
        direction: rtl;
        unicode-bidi: bidi-override;
      }

      .rv-star-pick input {
        display: none;
      }

      .rv-star-pick label {
        font-size: 1.8rem;
        cursor: pointer;
        color: rgba(255, 255, 255, 0.15);
        transition: color 0.15s, transform 0.1s;
        line-height: 1;
        direction: ltr;
      }

      .rv-star-pick label:hover,
      .rv-star-pick label:hover ~ label {
        color: #fbbf24 !important;
      }

      .rv-star-pick input:checked ~ label {
        color: #fbbf24;
      }

      /* Upload zone */
      .rv-upload-zone {
        border: 2px dashed rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 1.25rem;
        text-align: center;
        cursor: pointer;
        transition: border-color 0.2s, background 0.2s;
        margin-bottom: 1.25rem;
        color: #475569;
        font-size: 0.82rem;
      }

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

      .rv-upload-zone i {
        font-size: 1.5rem;
        display: block;
        margin-bottom: 4px;
      }

      .rv-upload-zone input {
        display: none;
      }

      /* Success / error banners */
      .rv-alert {
        display: flex;
        align-items: center;
        gap: 10px;
        border-radius: 10px;
        padding: 0.75rem 1rem;
        margin-bottom: 1.25rem;
        font-size: 0.85rem;
      }

      .rv-alert-success {
        background: rgba(74, 222, 128, 0.1);
        border: 1px solid rgba(74, 222, 128, 0.25);
        color: #86efac;
      }

      .rv-alert-error {
        background: rgba(248, 113, 113, 0.1);
        border: 1px solid rgba(248, 113, 113, 0.25);
        color: #fca5a5;
      }

      @media (max-width: 600px) {
        .rv-summary {
          flex-direction: column;
          gap: 1.25rem;
        }

        .rv-big-score {
          display: flex;
          align-items: center;
          gap: 1rem;
        }

        .rv-big-num {
          font-size: 3rem;
        }

        .rv-add-fab {
          bottom: 5rem;
          left: 1rem; /* Kept on left for mobile too */
          padding: 0.65rem 1rem;
          font-size: 0.8rem;
        }

        .rv-panel {
            top: 70px;
            bottom: 10px;
            margin-right: 2.5vw;
        }
      }
