/* ===== BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0a0a0f;
  color: #e0e0e0;
  min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 200, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -1px;
}

.logo span {
  color: #00ffc8;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  text-decoration: none;
  color: #aaaaaa;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #00ffc8;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 100px 20px 60px;
  background: radial-gradient(ellipse at top, #0d1f2d 0%, #0a0a0f 70%);
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
}

.glow {
  color: #00ffc8;
  text-shadow: 0 0 20px rgba(0, 255, 200, 0.5);
}

.hero p {
  font-size: 1.1rem;
  color: #888;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ===== DROPDOWN ===== */
.dropdown-wrapper {
  display: inline-block;
}

#categorySelect {
  background: #0f1a24;
  color: #00ffc8;
  border: 1.5px solid #00ffc8;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  appearance: none;
  min-width: 280px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.15);
  transition: box-shadow 0.3s;
}

#categorySelect:hover {
  box-shadow: 0 0 30px rgba(0, 255, 200, 0.35);
}

/* ===== RESULTS ===== */
.results {
  padding: 60px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}/* ===== CARDS ===== */
.card {
  background: #0f1a24;
  border: 1px solid rgba(0, 255, 200, 0.15);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(0, 255, 200, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-header img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.card-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.card-desc {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: #aaa;
}

.free-badge {
  font-size: 0.85rem;
  color: #00ffc8;
  font-weight: 600;
}

.no-free-badge {
  font-size: 0.85rem;
  color: #ff4f4f;
  font-weight: 600;
}

.free-alt {
  font-size: 0.85rem;
  color: #aaa;
}

.free-alt strong {
  color: #00ffc8;
}

.compare-btn {
  margin-top: 8px;
  padding: 12px;
  background: transparent;
  border: 1.5px solid #00ffc8;
  color: #00ffc8;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.compare-btn:hover {
  background: #00ffc8;
  color: #0a0a0f;
}/* ===== COMPARE PANEL ===== */
.compare-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
}

.compare-overlay.open {
  display: block;
}

.compare-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 92%;
  max-width: 780px;
  max-height: 85vh;
  background: #0d1a24;
  border: 1.5px solid rgba(0,255,200,0.25);
  border-radius: 20px;
  z-index: 300;
  padding: 40px 36px;
  overflow-y: auto;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 60px rgba(0,255,200,0.1);
}

.compare-panel.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
}

.close-btn {
  align-self: flex-end;
  background: transparent;
  border: 1px solid #444;
  color: #aaa;
  font-size: 1.1rem;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #fff;
  border-color: #00ffc8;
}

.compare-title {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
}

.compare-title span {
  color: #00ffc8;
}

.compare-row {
  background: #111e2a;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-row.highlight {
  border-color: #00ffc8;
  box-shadow: 0 0 16px rgba(0,255,200,0.15);
}

.compare-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-name img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.compare-name strong {
  color: #fff;
  font-size: 1rem;
}

.selected-tag {
  background: #00ffc8;
  color: #0a0a0f;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.compare-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: #aaa;
}

.compare-detail b {
  color: #ccc;
}/* ===== TOGGLE ===== */
.toggle-wrapper {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.toggle-bar {
  display: flex;
  background: #0d1a24;
  border: 2px solid #00ffc8;
  border-radius: 50px;
  padding: 5px;
  gap: 6px;
  box-shadow: 0 0 24px rgba(0, 255, 200, 0.25);
}

.toggle-btn {
  padding: 12px 32px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: #aaa;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.toggle-btn:hover {
  color: #fff;
}

.toggle-btn.active {
  background: #00ffc8;
  color: #0a0a0f;
  box-shadow: 0 0 16px rgba(0, 255, 200, 0.5);
}

/* ===== CARDS GRID ===== */
.cards-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ===== FREE TIER BOX ON CARD ===== */
.free-tier-box {
  background: rgba(0, 255, 200, 0.05);
  border: 1px solid rgba(0, 255, 200, 0.15);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.free-tier-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: #aaa;
  margin-top: 4px;
}

.free-tier-detail b {
  color: #ccc;
}

/* ===== FREE ALTERNATIVE CARD ===== */
.free-card {
  border-color: rgba(0, 255, 200, 0.3);
}

.free-icon {
  font-size: 1.6rem;
}

.based-on {
  font-size: 0.8rem;
  color: #555;
  margin-top: 4px;
}

.based-on strong {
  color: #00ffc8;
}/* ===== COMPARE BAR ===== */
.compare-bar {
  grid-column: 1 / -1;
  background: #0d1a24;
  border: 1.5px solid rgba(0, 255, 200, 0.2);
  border-radius: 14px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

#compareBarText {
  color: #aaa;
  font-size: 0.92rem;
  font-weight: 600;
}

.compare-now-btn {
  padding: 12px 28px;
  background: #00ffc8;
  color: #0a0a0f;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

.compare-now-btn:disabled {
  background: #1a2a35;
  color: #444;
  cursor: not-allowed;
}

.compare-now-btn:not(:disabled):hover {
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.5);
  transform: scale(1.03);
}

/* ===== CARD CHECKBOX ===== */
.card-top-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.compare-check-wrapper {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-top: 4px;
  flex-shrink: 0;
}

.compare-check-wrapper input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #00ffc8;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.compare-check:checked + .checkmark {
  background: #00ffc8;
}

.compare-check:checked + .checkmark::after {
  content: '✓';
  color: #0a0a0f;
  font-size: 0.8rem;
  font-weight: 900;
}

.selected-for-compare {
  border-color: #00ffc8 !important;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.25) !important;
}

/* ===== VISIT BUTTON ===== */
.visit-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 20px;
  border: 1.5px solid #00ffc8;
  color: #00ffc8;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.3s;
}

.visit-btn:hover {
  background: #00ffc8;
  color: #0a0a0f;
}

/* ===== COMPARE TABLE ===== */
.compare-table-wrapper {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-table th {
  background: rgba(0, 255, 200, 0.1);
  color: #00ffc8;
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 255, 200, 0.2);
}

.compare-table td {
  padding: 12px 16px;
  color: #ccc;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top;
}

.compare-table tr:hover td {
  background: rgba(0, 255, 200, 0.03);
}

.row-label {
  color: #888 !important;
  font-weight: 600;
  white-space: nowrap;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a2a35;
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(0,255,200,0.2);
  opacity: 0;
  transition: all 0.3s;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 400;
  backdrop-filter: blur(4px);
}

.modal-overlay.open { display: block; }

.ai-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 620px;
  max-height: 85vh;
  overflow-y: auto;
  background: #0d1a24;
  border: 1px solid rgba(0,255,200,0.2);
  border-radius: 20px;
  padding: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.ai-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
}

.modal-sticky-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0d1a24;
  padding: 28px 36px 16px;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid rgba(0,255,200,0.1);
}

.modal-scrollable {
  padding: 20px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.ai-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
}

.modal-close {
  align-self: flex-end;
  background: transparent;
  border: 1px solid #333;
  color: #aaa;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.modal-close:hover { color: #fff; border-color: #00ffc8; }

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-header img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  background: #111;
  padding: 6px;
}

.modal-header h2 {
  font-size: 1.4rem;
  color: #fff;
  font-weight: 800;
}

.modal-header p {
  font-size: 0.85rem;
  color: #00ffc8;
  margin-top: 4px;
  text-transform: capitalize;
}

/* ===== SOURCE RATING ===== */
.source-rating-bar {
  background: linear-gradient(135deg, rgba(0,255,200,0.12), rgba(0,180,255,0.08));
  border: 1.5px solid #00ffc8;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: #ccc;
  font-weight: 600;
  box-shadow: 0 0 24px rgba(0,255,200,0.15), inset 0 0 20px rgba(0,255,200,0.04);
  position: relative;
  overflow: hidden;
}

.source-rating-bar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,255,200,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.g2-score {
  color: #00ffc8;
  font-size: 1.5rem;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(0,255,200,0.7);
  letter-spacing: -0.5px;
}

.g2-total {
  color: #888;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ===== MODAL TABS ===== */
.modal-tabs {
  display: flex;
  gap: 8px;
  background: #0a1520;
  padding: 5px;
  border-radius: 12px;
}

.modal-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: #666;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-tab.active {
  background: #00ffc8;
  color: #0a0a0f;
}

/* ===== METRICS ===== */
.rate-subtext {
  font-size: 0.9rem;
  color: #888;
}

.rate-subtext strong { color: #fff; }

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.metric-label {
  font-size: 0.92rem;
  color: #ccc;
  font-weight: 600;
}

.metric-avg {
  font-size: 0.78rem;
  color: #555;
  margin-top: 2px;
}

.star-input {
  display: flex;
  gap: 4px;
  font-size: 1.6rem;
  cursor: pointer;
}

.star-input span {
  color: #333;
  transition: color 0.15s;
  user-select: none;
}

.star-input span.lit { color: #00ffc8; }

/* ===== REVIEW FORM ===== */
.review-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.review-form h3 {
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
}

.review-form input,
.review-form textarea {
  background: #0a1520;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border 0.2s;
}

.review-form input:focus,
.review-form textarea:focus {
  border-color: #00ffc8;
}

.review-form textarea {
  min-height: 100px;
  resize: vertical;
}

.overall-score-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: #aaa;
}

.submit-review-btn {
  padding: 14px;
  background: #00ffc8;
  color: #0a0a0f;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-review-btn:hover {
  box-shadow: 0 0 24px rgba(0,255,200,0.4);
  transform: scale(1.02);
}

.submit-msg {
  font-size: 0.85rem;
  color: #00ffc8;
  text-align: center;
  min-height: 20px;
}

/* ===== REVIEWS LIST ===== */
.review-card {
  background: #0a1520;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.reviewer-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.92rem;
}

.reviewer-score {
  color: #00ffc8;
  font-size: 0.88rem;
  font-weight: 700;
}

.review-text {
  font-size: 0.88rem;
  color: #999;
  line-height: 1.6;
}

.review-date {
  font-size: 0.75rem;
  color: #444;
  margin-top: 8px;
}

.no-reviews {
  text-align: center;
  color: #555;
  padding: 40px 0;
  font-size: 0.9rem;
}

/* ===== CARD CLICKABLE ===== */
.card { cursor: pointer; }