/**
 * UpStar Invest - Private Equity & Venture Capital Escrow Reviews Design System
 * Obsidian & Electric Emerald Dark Theme (#060606)
 * Accent: #1AFD6D -> #1DBC57 (Growth & Financial Trust)
 */

/* ========================================================
   SECTION CONTAINER
======================================================== */
.wbs-reviews-section {
  position: relative;
  background: #060606;
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(26, 253, 109, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(29, 188, 87, 0.05) 0%, transparent 40%);
  padding: 85px 20px;
  color: #f8fafc;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

.wbs-reviews-container {
  max-width: 1220px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ========================================================
   HEADER & TITLE
======================================================== */
.wbs-reviews-header {
  text-align: center;
  margin-bottom: 48px;
}

.wbs-reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 253, 109, 0.1);
  color: #1AFD6D;
  border: 1px solid rgba(26, 253, 109, 0.3);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(26, 253, 109, 0.15);
}

.wbs-reviews-title {
  font-size: 40px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 14px 0;
  letter-spacing: -0.6px;
}

.wbs-reviews-subtitle {
  font-size: 16.5px;
  color: #94a3b8;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================================
   SCOREBOARD (OBSIDIAN WEALTH TERMINAL)
======================================================== */
.wbs-scoreboard {
  background: linear-gradient(145deg, #0e1611 0%, #060a08 100%);
  border: 1px solid rgba(26, 253, 109, 0.22);
  border-radius: 24px;
  padding: 38px 42px;
  margin-bottom: 42px;
  display: grid;
  grid-template-columns: 240px 1fr 320px;
  gap: 38px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(26, 253, 109, 0.07);
}

.wbs-score-main {
  text-align: center;
  border-right: 1px solid rgba(26, 253, 109, 0.12);
  padding-right: 25px;
}

.wbs-score-number {
  font-size: 64px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(26, 253, 109, 0.3);
}

.wbs-score-stars {
  font-size: 24px;
  color: #fbbf24;
  letter-spacing: 3px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}

.wbs-score-count {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.wbs-score-bars {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wbs-bar-row {
  display: grid;
  grid-template-columns: 32px 1fr 36px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
}

.wbs-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
}

.wbs-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1AFD6D 0%, #1DBC57 100%);
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(26, 253, 109, 0.5);
}

.wbs-score-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid rgba(26, 253, 109, 0.12);
  padding-left: 32px;
}

.wbs-highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #e2e8f0;
  font-weight: 500;
}

.wbs-highlight-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}

.wbs-highlight-icon.check {
  background: rgba(26, 253, 109, 0.15);
  color: #1AFD6D;
  border: 1px solid rgba(26, 253, 109, 0.35);
}

.wbs-highlight-icon.star {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.wbs-highlight-icon.bolt {
  background: rgba(26, 253, 109, 0.15);
  color: #1AFD6D;
  border: 1px solid rgba(26, 253, 109, 0.35);
}

/* UpStar Signature Emerald Button */
.wbs-btn-write {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(173deg, #1AFD6D 4.78%, #1DBC57 94.17%);
  color: #022c14 !important;
  font-weight: 800;
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 13px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  box-shadow: 0px 4px 18px rgba(26, 253, 109, 0.38);
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: 6px;
}

.wbs-btn-write:hover {
  cursor: pointer;
  background: linear-gradient(173deg, #31ff7c 4.78%, #37d972 94.17%);
  box-shadow: 0px 6px 26px rgba(26, 253, 109, 0.6);
  filter: brightness(105%);
  transform: translateY(-2px);
  color: #011d0d !important;
}

/* ========================================================
   FILTERS & CONTROLS BAR
======================================================== */
.wbs-filters-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.wbs-lang-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wbs-lang-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0d1510;
  color: #94a3b8;
  border: 1px solid rgba(26, 253, 109, 0.18);
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.wbs-lang-tab:hover {
  background: #121c16;
  color: #d1fae5;
  border-color: rgba(26, 253, 109, 0.4);
}

.wbs-lang-tab.active {
  background: linear-gradient(173deg, #1AFD6D 0%, #1DBC57 100%);
  color: #022c14;
  font-weight: 800;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(26, 253, 109, 0.4);
}

/* Flag Image in Filter Buttons */
.wbs-lang-flag-img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  display: inline-block;
  vertical-align: middle;
}

.wbs-lang-tab .tab-badge {
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.wbs-lang-tab.active .tab-badge {
  background: rgba(2, 44, 20, 0.25);
  color: #022c14;
}

.wbs-sort-select {
  background: #0d1510;
  color: #cbd5e1;
  border: 1px solid rgba(26, 253, 109, 0.2);
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.wbs-sort-select:focus {
  border-color: #1AFD6D;
  box-shadow: 0 0 10px rgba(26, 253, 109, 0.3);
}

/* ========================================================
   REVIEWS GRID & CARDS (OBSIDIAN & EMERALD)
======================================================== */
.wbs-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 45px;
}

.wbs-card {
  background: linear-gradient(145deg, #0e1511 0%, #080d0a 100%);
  border: 1px solid rgba(26, 253, 109, 0.15);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.wbs-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(26, 253, 109, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.wbs-card:hover {
  transform: translateY(-5px);
  border-color: rgba(26, 253, 109, 0.45);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(26, 253, 109, 0.12);
}

.wbs-card:hover::before {
  opacity: 1;
}

.wbs-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.wbs-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

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

.wbs-author-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.wbs-author-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #f8fafc;
}

/* Country Flag & Label */
.wbs-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(26, 253, 109, 0.08);
  border: 1px solid rgba(26, 253, 109, 0.2);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11.5px;
  color: #86efac;
  font-weight: 600;
}

.wbs-country-flag {
  width: 17px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.wbs-email-masked {
  font-size: 12px;
  color: #64748b;
  font-family: monospace;
}

.wbs-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26, 253, 109, 0.1);
  color: #1AFD6D;
  border: 1px solid rgba(26, 253, 109, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 14px;
}

.wbs-stars-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.wbs-card-stars {
  font-size: 16px;
  color: #fbbf24;
  letter-spacing: 2px;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.4));
}

.wbs-card-date {
  font-size: 12px;
  color: #64748b;
}

.wbs-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.wbs-card-text {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 18px;
}

.wbs-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(26, 253, 109, 0.1);
  padding-top: 14px;
  margin-top: 10px;
}

.wbs-card-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #1AFD6D;
  font-weight: 600;
}

.wbs-lang-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0d1510;
  border: 1px solid rgba(26, 253, 109, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 600;
}

.wbs-lang-tag-flag {
  width: 15px;
  height: 11px;
  object-fit: cover;
  border-radius: 2px;
  display: inline-block;
}

/* ========================================================
   PAGINATION (OBSIDIAN & EMERALD)
======================================================== */
.wbs-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #090e0b;
  border: 1px solid rgba(26, 253, 109, 0.15);
  border-radius: 16px;
  padding: 16px 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.wbs-pagination-info {
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
}

.wbs-pagination-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wbs-page-btn {
  background: #0d1510;
  color: #86efac;
  border: 1px solid rgba(26, 253, 109, 0.18);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 38px;
  text-align: center;
}

.wbs-page-btn:hover:not(:disabled) {
  background: #142018;
  color: #ffffff;
  border-color: rgba(26, 253, 109, 0.45);
}

.wbs-page-btn.active {
  background: linear-gradient(173deg, #1AFD6D 0%, #1DBC57 100%);
  color: #022c14;
  font-weight: 800;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(26, 253, 109, 0.4);
}

.wbs-page-btn:disabled,
.wbs-page-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.wbs-page-ellipsis {
  color: #64748b;
  padding: 0 4px;
  font-weight: 700;
}

/* ========================================================
   MODAL (OBSIDIAN DARK)
======================================================== */
.wbs-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wbs-modal.active {
  display: flex;
}

.wbs-modal-content {
  background: #090e0b;
  border: 1px solid rgba(26, 253, 109, 0.3);
  border-radius: 20px;
  padding: 32px;
  max-width: 580px;
  width: 100%;
  color: #ffffff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 30px rgba(26, 253, 109, 0.15);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.wbs-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.wbs-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.wbs-form-group {
  margin-bottom: 16px;
}

.wbs-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.wbs-form-input,
.wbs-form-textarea,
.wbs-form-select {
  width: 100%;
  background: #0f1712;
  border: 1px solid rgba(26, 253, 109, 0.2);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.wbs-form-input:focus,
.wbs-form-textarea:focus,
.wbs-form-select:focus {
  border-color: #1AFD6D;
  box-shadow: 0 0 10px rgba(26, 253, 109, 0.3);
}

.wbs-star-picker span {
  font-size: 28px;
  cursor: pointer;
  color: #475569;
  transition: color 0.15s;
}

.wbs-star-picker span.active {
  color: #fbbf24;
}

/* Responsive */
@media (max-width: 992px) {
  .wbs-scoreboard {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .wbs-score-main {
    border-right: none;
    border-bottom: 1px solid rgba(26, 253, 109, 0.12);
    padding-right: 0;
    padding-bottom: 20px;
  }
  .wbs-score-highlights {
    border-left: none;
    border-top: 1px solid rgba(26, 253, 109, 0.12);
    padding-left: 0;
    padding-top: 20px;
  }
  .wbs-reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .wbs-reviews-grid {
    grid-template-columns: 1fr;
  }
  .wbs-reviews-title {
    font-size: 28px;
  }
}
