/* ============================================
   ConstruxHub - Main Stylesheet
   Dark theme with orange/yellow accents
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;800&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0e0e0e;
  --bg-card:   #1a1a1a;
  --bg-card2:  #222222;
  --bg-input:  #2a2a2a;
  --border:    #333333;
  --orange:    #f5a623;
  --orange-dk: #d4891a;
  --text:      #f0f0f0;
  --text-muted:#9a9a9a;
  --text-dim:  #666666;
  --green:     #4caf7d;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select { font-family: inherit; }

/* ---- Typography ---- */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,14,14,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}

.nav a:hover, .nav a.active {
  color: var(--text);
  background: var(--bg-card2);
}

.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: #000;
}
.btn-primary:hover { background: var(--orange-dk); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--text-muted); background: var(--bg-card2); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
}
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-lg); }

/* ============================================
   GC DIRECTORY CARD
   ============================================ */
.gc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s;
}

.gc-card:hover {
  border-color: #444;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.gc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}

.gc-card-info { flex: 1; }

.gc-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.gc-card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.score-chip {
  border-radius: var(--radius);
  padding: 10px 14px;
  text-align: center;
  min-width: 70px;
  flex-shrink: 0;
  color: #fff;
}

.score-chip-value {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.score-chip-label {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 2px;
  color: #fff;
}

.gc-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.stat-box {
  background: var(--bg-card2);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon { font-size: 1.2rem; }

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- Progress Bar Scores ---- */
.gc-scores { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-row-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 110px;
  flex-shrink: 0;
}

.score-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-input);
  border-radius: 999px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.score-bar-value {
  font-size: 0.85rem;
  font-weight: 600;
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

/* ============================================
   DIRECTORY PAGE
   ============================================ */
.directory-hero {
  padding: 60px 0 40px;
  text-align: center;
}

.directory-hero h1 { margin-bottom: 12px; }
.directory-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 500px; margin: 0 auto 32px; }

.search-bar {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}

.search-bar:focus-within { border-color: var(--orange); }

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.95rem;
}

.search-bar input::placeholder { color: var(--text-dim); }

.search-bar button {
  background: var(--orange);
  border: none;
  padding: 14px 20px;
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.search-bar button:hover { background: var(--orange-dk); }

/* Filters */
.filters-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 9px 14px;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 160px;
}

.filter-select:focus { border-color: var(--orange); }

.filter-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 9px 14px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  min-width: 180px;
}

.filter-input::placeholder { color: var(--text-dim); }
.filter-input:focus { border-color: var(--orange); }

.results-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Directory grid */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* ============================================
   LANDING PAGE
   ============================================ */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--orange);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--orange); }

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.waitlist-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto 16px;
  gap: 10px;
}

.waitlist-form input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 13px 16px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form input:focus { border-color: var(--orange); }
.waitlist-form input::placeholder { color: var(--text-dim); }

.waitlist-note { font-size: 0.8rem; color: var(--text-dim); }

/* Stats row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-item-value { font-size: 2.5rem; font-weight: 800; color: var(--orange); line-height: 1; }
.stat-item-label { font-size: 0.9rem; color: var(--text-muted); margin-top: 6px; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(245,166,35,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-top: 48px; }

.step { text-align: center; padding: 24px; }

.step-number {
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 16px;
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* CTA section */
.cta-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  margin: 60px 0;
}

.cta-section h2 { margin-bottom: 16px; }
.cta-section p { color: var(--text-muted); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ============================================
   GC PROFILE PAGE
   ============================================ */
.profile-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.profile-header-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: var(--bg-card2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.profile-info { flex: 1; min-width: 200px; }
.profile-name { font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.profile-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.9rem; }
.profile-meta span { display: flex; align-items: center; gap: 5px; }

.profile-score-chips { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

.profile-chip {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  text-align: center;
}

.profile-chip.primary { border-color: var(--border); }
.profile-chip-value { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.profile-chip-label { font-size: 0.7rem; font-weight: 600; opacity: 0.7; margin-top: 2px; }

.profile-body { padding: 40px 0; }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
}

@media (max-width: 768px) {
  .profile-grid { grid-template-columns: 1fr; }
}

.profile-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

.profile-section h3 {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* Reviews */
.review-card {
  background: var(--bg-card2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.reviewer-name { font-weight: 600; }
.review-date { font-size: 0.8rem; color: var(--text-muted); }
.review-trade { font-size: 0.8rem; color: var(--orange); margin-bottom: 8px; }
.review-text { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.review-scores { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.review-score-item { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; }
.review-score-badge { background: var(--bg-card); border-radius: 4px; padding: 2px 7px; font-weight: 600; font-size: 0.8rem; }

/* ============================================
   LOGIN / SIGNUP
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; text-align: center; }
.auth-subtitle { color: var(--text-muted); font-size: 0.9rem; text-align: center; margin-bottom: 28px; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card2);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  padding: 9px;
  text-align: center;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.auth-tab.active { background: var(--bg-card); color: var(--text); }

/* Form elements */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--text-muted); }

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 14px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus { border-color: var(--orange); }
.form-input::placeholder { color: var(--text-dim); }

.form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 14px;
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.form-select:focus { border-color: var(--orange); }

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--text-muted); }
.auth-footer a { color: var(--orange); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero { padding: 80px 0; text-align: center; }
.about-hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 600px; margin: 16px auto 0; }

.mission-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 40px 0;
}

.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.value-card h3 { margin-bottom: 8px; color: var(--orange); }
.value-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 24px 28px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; max-width: 240px; }

.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 14px; }

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ============================================
   UTILITIES & MISC
   ============================================ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-orange { background: rgba(245,166,35,0.15); color: var(--orange); }
.badge-green  { background: rgba(76,175,125,0.15); color: var(--green); }
.badge-gray   { background: var(--bg-card2); color: var(--text-muted); }

.claimed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(76,175,125,0.1);
  border: 1px solid rgba(76,175,125,0.3);
  color: var(--green);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; color: var(--text); }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid #e74c3c; }

/* Responsive */
@media (max-width: 768px) {
  .nav a { display: none; }
  .directory-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 32px; }
  .cta-section { padding: 40px 24px; }
  .waitlist-form { flex-direction: column; }
  .filters-bar { flex-direction: column; align-items: stretch; }
  .results-count { margin-left: 0; }
}

/* ---- Verified Badge + Tooltip ---- */
.verified-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(76, 175, 125, 0.15);
  color: #4caf7d;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: help;
  user-select: none;
}

.verified-badge .tooltip-icon {
  font-size: 0.7rem;
  opacity: 0.7;
}

.verified-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  width: 240px;
  font-size: 0.8rem;
  color: var(--text-muted);
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  pointer-events: none;
}

.verified-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--border);
}

.verified-badge:hover .verified-tooltip,
.verified-badge.active .verified-tooltip {
  display: block;
}

/* ---- Verify Page ---- */
.verify-page {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 24px;
}

.verify-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 560px;
}

.verify-status {
  text-align: center;
  padding: 24px;
  border-radius: 10px;
  margin-bottom: 24px;
}

.verify-status.pending {
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.3);
}

.verify-status.verified {
  background: rgba(76,175,125,0.1);
  border: 1px solid rgba(76,175,125,0.3);
}

/* ---- Trade Checkboxes (Add GC form) ---- */
.trade-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.trade-check:hover { border-color: var(--orange); }

.trade-check input[type="checkbox"] {
  accent-color: var(--orange);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.trade-check:has(input:checked) {
  border-color: var(--orange);
  background: rgba(245,166,35,0.08);
  color: var(--orange);
}

/* ---- Score Info Tooltips ---- */
.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: help;
}

.info-tip-icon {
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0.7;
  font-style: normal;
}

.info-tip-bubble {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  width: 220px;
  font-size: 0.78rem;
  color: var(--text-muted);
  z-index: 300;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
}

.info-tip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--border);
}

.info-tip:hover .info-tip-bubble,
.info-tip.active .info-tip-bubble {
  display: block;
}
