/* ============================================================
   PharmaDash — Landing Page Styles
   ============================================================ */

/* --- Hero --- */
.hero {
  position: relative;
  padding: 140px 2rem 100px;
  overflow: hidden;
  background: var(--primary-dark);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #001d54 0%, #003087 30%, #005eb8 60%, #00A9CE 100%);
  background-size: 300% 300%;
  animation: gradient-shift 12s ease infinite;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: rgba(0,169,206,0.2);
  top: -10%; right: -5%;
  animation: float-slow 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 350px; height: 350px;
  background: rgba(0,150,57,0.12);
  bottom: -5%; left: -5%;
  animation: float-medium 10s ease-in-out infinite;
}
.hero-orb-3 {
  width: 200px; height: 200px;
  background: rgba(74,222,128,0.1);
  top: 40%; left: 30%;
  animation: float-slow 12s ease-in-out infinite;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-container {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.2px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  position: relative;
}
.hero-badge-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(74,222,128,0.4);
  animation: pulse-ring 2s ease infinite;
}
.hero h1 {
  font-size: var(--text-6xl);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 28px;
  letter-spacing: -3px;
  color: #fff;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, #4ade80 0%, #00A9CE 50%, #60a5fa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s linear infinite;
}
.hero-subtitle {
  font-size: var(--text-xl);
  line-height: 1.7;
  margin-bottom: 48px;
  color: rgba(255,255,255,0.75);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.trust-badge-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}

/* --- Social Proof --- */
.social-proof {
  background: var(--bg);
  padding: 48px 2rem;
  border-bottom: 1px solid var(--border);
}
.social-proof-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}
.proof-stat { text-align: center; }
.proof-stat-value {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.proof-stat-label {
  font-size: var(--text-sm);
  color: var(--text-lighter);
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.3px;
}
.proof-divider {
  width: 1px; height: 40px;
  background: var(--border);
}

/* --- How It Works --- */
.how-it-works {
  background: var(--bg);
  padding: 120px 2rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.step-card {
  text-align: center;
  padding: 2.5rem 2rem;
  position: relative;
}
.step-connector {
  position: absolute;
  top: 40px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  opacity: 0.15;
}
.step-card:last-child .step-connector { display: none; }
.step-number {
  width: 64px; height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(0,48,135,0.25);
}
.step-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.step-card p {
  font-size: var(--text-base);
  color: var(--text-light);
  line-height: 1.7;
  max-width: 300px;
  margin: 0 auto;
}

/* --- Feature Pillars (alternating sections) --- */
.feature-pillars {
  background: var(--bg-subtle);
  padding: 120px 2rem 60px;
}
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 100px;
}
.pillar:last-child { margin-bottom: 0; }
.pillar.reverse { direction: rtl; }
.pillar.reverse > * { direction: ltr; }
.pillar-text { max-width: 500px; }
.pillar-text .section-title {
  text-align: left;
  font-size: 40px;
  margin-bottom: 20px;
}
.pillar-text .section-subtitle {
  text-align: left;
  margin-bottom: 28px;
}
.pillar-checklist {
  list-style: none;
  margin-bottom: 36px;
}
.pillar-checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-size: var(--text-base);
  color: var(--text);
  font-weight: 500;
}
.check-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e6f7ee, #c8f0d8);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Pillar Visual / Mock */
.pillar-visual {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(255,255,255,0.05);
}
.mock-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  margin-bottom: 1rem;
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot-r { background: #ef4444; }
.mock-dot-y { background: #f59e0b; }
.mock-dot-g { background: #22c55e; }
.mock-url-bar {
  flex: 1;
  margin-left: 8px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-family: 'Inter', monospace;
}
.mock-content {
  padding: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  min-height: 200px;
}
.mock-dashboard-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.mock-stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1rem;
}
.mock-stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.mock-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.mock-stat-change { font-size: 11px; font-weight: 600; margin-top: 4px; }
.mock-stat-up { color: #4ade80; }
.mock-stat-down { color: #f87171; }
.mock-chart-area {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1.25rem;
  height: 170px;
  position: relative;
  overflow: hidden;
}
.mock-chart-title {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: 16px;
}
.mock-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 110px;
  padding-bottom: 1px;
}
.mock-bar {
  flex: 1;
  border-radius: 5px 5px 0 0;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.mock-bar-fill {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  border-radius: 5px 5px 0 0;
  transition: height 1.2s var(--ease-out-expo);
}
.mb-blue { background: linear-gradient(180deg, #3b82f6, #1d4ed8); }
.mb-cyan { background: linear-gradient(180deg, #06b6d4, #0891b2); }
.mb-green { background: linear-gradient(180deg, #22c55e, #16a34a); }

/* Mock content for different pillar types */
.mock-dispensing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.mock-dispensing-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.875rem;
}
.mock-dispensing-label {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.mock-dispensing-value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.mock-row:last-child { border-bottom: none; }
.mock-row-value { color: #fff; font-weight: 600; }
.mock-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
}
.mock-pill-green { background: rgba(34,197,94,0.15); color: #4ade80; }
.mock-pill-red { background: rgba(239,68,68,0.15); color: #f87171; }

/* --- Bento Grid (Secondary Features) --- */
.features-secondary {
  background: var(--bg-subtle);
  padding: 0 2rem 120px;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.bento-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out-expo);
  transform-origin: left;
}
.bento-card:hover::before { transform: scaleX(1); }
.bento-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.bento-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}
.bi-blue { background: linear-gradient(135deg, #e8f0fe, #d0e2ff); }
.bi-green { background: linear-gradient(135deg, #e6f7ee, #c8f0d8); }
.bi-cyan { background: linear-gradient(135deg, #e0f7fa, #b2ebf2); }
.bi-purple { background: linear-gradient(135deg, #f0e8ff, #e0d0ff); }
.bi-orange { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.bento-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.bento-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Pricing --- */
.pricing {
  background: var(--bg);
  padding: 120px 2rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 840px;
  margin: 0 auto;
}
.pricing-grid.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
}
.pricing-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  position: relative;
  transition: all 0.4s var(--ease-out-expo);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,94,184,0.08);
}
.pricing-card.featured:hover {
  box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(0,94,184,0.12);
  transform: translateY(-4px);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 6px 22px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,48,135,0.3);
}
.pricing-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.pricing-tagline {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
}
.pricing-amount {
  font-size: var(--text-5xl);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -2.5px;
  margin-bottom: 4px;
}
.pricing-amount small {
  font-size: 16px;
  color: var(--text-lighter);
  font-weight: 500;
  letter-spacing: 0;
}
.pricing-annual-note {
  font-size: var(--text-sm);
  color: var(--accent-green);
  font-weight: 600;
  margin-bottom: 28px;
}
.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}
.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 14.5px;
  color: var(--text);
}
.pricing-features li .pf-check {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.btn-pricing {
  display: block;
  width: 100%;
  padding: 15px 24px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease-out-expo);
  text-align: center;
  text-decoration: none;
}
.btn-pricing-outline {
  background: var(--bg);
  color: var(--primary);
  border: 2px solid var(--border);
}
.btn-pricing-outline:hover {
  border-color: var(--primary-light);
  background: var(--bg-subtle);
  transform: translateY(-2px);
}
.btn-pricing-filled {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,48,135,0.2);
}
.btn-pricing-filled:hover {
  background: var(--primary-light);
  box-shadow: 0 8px 24px rgba(0,48,135,0.3);
  transform: translateY(-2px);
}

/* --- FAQ --- */
.faq {
  background: var(--bg-subtle);
  padding: 120px 2rem;
}
.faq-grid {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--primary-light); }
.faq-chevron {
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-lighter);
  font-size: 18px;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo);
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding-bottom: 24px;
  font-size: var(--text-base);
  color: var(--text-light);
  line-height: 1.7;
}

/* --- CTA --- */
.cta {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
  padding: 120px 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
}
.cta-orb-1 {
  width: 300px; height: 300px;
  background: rgba(0,169,206,0.12);
  top: -50px; right: -50px;
  animation: float-slow 10s ease-in-out infinite;
}
.cta-orb-2 {
  width: 200px; height: 200px;
  background: rgba(74,222,128,0.08);
  bottom: -30px; left: -30px;
  animation: float-medium 8s ease-in-out infinite;
}
.cta h2 {
  font-size: var(--text-4xl);
  font-weight: 900;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -1.5px;
  position: relative;
  z-index: 1;
}
.cta p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}
.cta .btn-hero-primary {
  position: relative;
  z-index: 1;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid.pricing-grid-4 { grid-template-columns: repeat(2, 1fr); max-width: 840px; }
  .pricing-grid.pricing-grid-4 .pricing-card { padding: 2rem; }
  .pillar { grid-template-columns: 1fr; gap: 3rem; }
  .pillar.reverse { direction: ltr; }
  .pillar-text { max-width: 100%; }
}
@media (max-width: 768px) {
  .hero { padding: 140px 1.5rem 80px; }
  .hero h1 { font-size: 38px; letter-spacing: -1.5px; }
  .hero-subtitle { font-size: 16px; }
  .steps-grid { grid-template-columns: 1fr; gap: 0; }
  .step-connector { display: none; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-grid.pricing-grid-4 { grid-template-columns: 1fr; max-width: 420px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; max-width: 320px; }
  .trust-row { gap: 1.5rem; }
  .social-proof-inner { gap: 2rem; }
  .proof-stat-value { font-size: 28px; }
  .proof-divider { display: none; }
  .mock-dashboard-content { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .mock-stat-value { font-size: 16px; }
  .pillar-visual { padding: 1rem; }
  .cta h2 { font-size: var(--text-3xl); }
}
@media (max-width: 480px) {
  .bento-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
}

/* ─── National Leaderboard Section ────────────────────── */
.national-leaderboard {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.lb-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 24px;
  justify-content: center;
}

.lb-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lb-metric-btn {
  padding: 8px 16px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.lb-metric-btn:hover { border-color: #005eb8; color: #005eb8; }
.lb-metric-btn.active {
  background: #005eb8;
  color: #fff;
  border-color: #005eb8;
}

.lb-search-wrap { flex: 1; min-width: 250px; max-width: 350px; }
.lb-search {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.lb-search:focus { border-color: #005eb8; }

.lb-table-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.lb-loading {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
  font-size: 14px;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.lb-table thead th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}

.lb-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}
.lb-table tbody tr:hover { background: #f8fafc; }
.lb-table tbody tr:last-child { border-bottom: none; }

.lb-table td { padding: 12px 16px; color: #1e293b; }

.lb-rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  background: #f1f5f9;
  color: #475569;
}

.lb-top3 .lb-rank-num {
  background: #005eb8;
  color: #fff;
}

.lb-pharmacy-cell { font-weight: 500; }
.lb-ods { font-size: 11px; color: #94a3b8; margin-left: 4px; }
.lb-icb-cell { font-size: 12px; color: #64748b; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Rank result card */
.lb-rank-result { max-width: 900px; margin: 0 auto 20px; }

.lb-rank-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border: 2px solid #005eb8;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,94,184,0.1);
}

.lb-rank-badge {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}

.lb-rank-info { flex: 1; min-width: 0; }
.lb-rank-name { font-size: 16px; font-weight: 700; color: #1e293b; }
.lb-rank-detail { font-size: 13px; color: #64748b; margin-top: 4px; }

.lb-rank-cta {
  padding: 10px 20px;
  background: #005eb8;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.lb-rank-cta:hover { background: #004a93; }

/* Search results dropdown */
.lb-search-results {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.lb-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f1f5f9;
}
.lb-search-item:last-child { border-bottom: none; }
.lb-search-item:hover { background: #f8fafc; }

.lb-search-rank { font-weight: 700; color: #005eb8; min-width: 40px; }
.lb-search-name { flex: 1; font-size: 14px; color: #1e293b; }
.lb-search-val { font-weight: 700; color: #1e293b; }

.lb-no-result {
  padding: 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

/* Pagination */
.lb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 900px;
  margin: 16px auto 0;
}

.lb-page-btn {
  padding: 8px 16px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #005eb8;
  cursor: pointer;
  transition: all 0.2s;
}
.lb-page-btn:hover { border-color: #005eb8; background: rgba(0,94,184,0.04); }

.lb-page-info { font-size: 13px; color: #64748b; }

@media (max-width: 768px) {
  .lb-controls { flex-direction: column; }
  .lb-search-wrap { max-width: 100%; min-width: 0; }
  .lb-rank-card { flex-direction: column; text-align: center; }
  .lb-icb-cell { display: none; }
  .lb-table td, .lb-table th { padding: 10px 10px; }
  .national-leaderboard { padding: 50px 0 40px; }
}
