/* ===================================================
   LEADBOOK PRIVATE MARKET — Premium Style
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* --- Tokens --- */
:root {
  --bg:            #000000;
  --surface:       rgba(15, 15, 15, 0.88);
  --surface-2:     rgba(25, 25, 25, 0.78);
  --line:          rgba(255,255,255,0.09);
  --line-strong:   rgba(255,255,255,0.16);
  --text:          #f6f8ff;
  --muted:         #9aa6bd;
  --faint:         #63708a;
  --green:         #18f2a3;
  --green-soft:    rgba(24,242,163,0.13);
  --blue:          #4da3ff;
  --blue-soft:     rgba(77,163,255,0.13);
  --purple:        #9b6bff;
  --purple-soft:   rgba(155,107,255,0.14);
  --amber:         #f4bd50;
  --danger:        #ff6b7c;
  --shadow:        0 22px 70px rgba(0,0,0,0.40);
  --radius:        10px;
  --radius-lg:     16px;
  --transition:    0.22s cubic-bezier(.4,0,.2,1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* --- Base --- */
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  background: var(--bg);
  letter-spacing: -0.01em;
}

/* Animated grid overlay */
body::before {
  display: none;
}

/* Animated ambient glow orbs */
body::after {
  display: none;
}

/* --- Keyframes --- */
@keyframes gridPulse {
  from { opacity: 0.6; }
  to   { opacity: 1;   }
}

@keyframes ambientShift {
  from { transform: scale(1) translate(0,0); }
  to   { transform: scale(1.08) translate(2%,-2%); }
}

@keyframes fadeInUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0);    }
}

@keyframes fadeInDown {
  from { opacity:0; transform:translateY(-20px); }
  to   { opacity:1; transform:translateY(0);     }
}

@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center;  }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(24,242,163,0.18), 0 20px 60px rgba(0,0,0,0.36); }
  50%       { box-shadow: 0 0 48px rgba(24,242,163,0.34), 0 20px 60px rgba(0,0,0,0.36); }
}

@keyframes countUp {
  from { opacity:0; transform:scale(.94); }
  to   { opacity:1; transform:scale(1);   }
}

@keyframes scanLine {
  0%   { transform: translateY(-100%); opacity:0; }
  10%  { opacity:.5; }
  90%  { opacity:.5; }
  100% { transform: translateY(100%);  opacity:0; }
}

@keyframes borderGlow {
  0%,100% { border-color: rgba(24,242,163,0.22); }
  50%      { border-color: rgba(24,242,163,0.55); }
}

@keyframes float {
  0%,100% { transform:translateY(0); }
  50%      { transform:translateY(-8px); }
}

@keyframes spinSlow {
  from { transform:rotate(0deg); }
  to   { transform:rotate(360deg); }
}

@keyframes slideInRight {
  from { opacity:0; transform:translateX(30px); }
  to   { opacity:1; transform:translateX(0);    }
}

@keyframes typewriter {
  from { width:0; }
  to   { width:100%; }
}

/* --- Utility animations --- */
.anim-fade-up   { animation: fadeInUp   0.6s var(--transition) both; }
.anim-fade-down { animation: fadeInDown 0.5s var(--transition) both; }
.anim-fade      { animation: fadeIn     0.5s ease both; }
.anim-count     { animation: countUp    0.5s ease both; }
.anim-float     { animation: float 4s ease-in-out infinite; }

/* Stagger delays */
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.40s; }
.delay-6 { animation-delay: 0.50s; }

/* --- Layout shell --- */
.app-shell {
  width: min(1520px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
  animation: fadeIn .4s ease both;
}

/* =====================================================
   LOGIN GATE
   ===================================================== */
.login-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
  overflow: hidden;
}

/* Scanning light behind login box */
.login-gate::before {
  content: '';
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

.login-box {
  position: relative;
  max-width: 460px;
  width: 100%;
  padding: 48px 36px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 120px rgba(0,0,0,0.4);
  animation: fadeInUp .55s cubic-bezier(.4,0,.2,1) both;
}

.login-logo {
  width: 64px;
  height: 64px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: none;
  animation: fadeInUp .55s cubic-bezier(.4,0,.2,1) both;
  flex-shrink: 0;
}

.login-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .8;
}

.login-box h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}

.login-box > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 320px;
}

.login-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.login-field input {
  width: 100%;
  min-height: 50px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0 18px;
  text-align: center;
  font-size: 16px;
  letter-spacing: .06em;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.login-field input::placeholder { color: var(--faint); letter-spacing: .04em; }

.login-field input:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

.login-field button {
  width: 100%;
  min-height: 50px;
  font-weight: 800;
  font-size: 15px;
}

.login-error {
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  min-height: 16px;
}

.login-disclaimer {
  font-size: 11px;
  color: var(--faint);
  line-height: 1.5;
  margin-top: 4px;
}

/* =====================================================
   TOPBAR
   ===================================================== */
.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  animation: fadeInDown .5s ease both;
}

.brand { display:flex; align-items:center; gap:14px; min-width:0; }

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #06100c;
  background: linear-gradient(135deg, var(--green), #88fff0);
  border-radius: var(--radius);
  box-shadow: 0 0 0 8px rgba(24,242,163,0.06), 0 0 34px rgba(24,242,163,0.28);
  font-size: 18px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.brand-mark:hover { transform:scale(1.06); box-shadow: 0 0 0 12px rgba(24,242,163,0.1), 0 0 48px rgba(24,242,163,0.38); }

.brand h1 {
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.1;
}
.brand p { margin-top: 3px; color: var(--muted); font-size: 12px; }

.top-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(24,242,163,0.24);
  color: #bfffe6;
  background: rgba(24,242,163,0.07);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255,255,255,0.055);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  font-weight: 600;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-primary {
  border-color: rgba(24,242,163,0.5);
  color: #06100c;
  background: linear-gradient(135deg, var(--green), #7fffd8);
  font-weight: 800;
  box-shadow: 0 8px 32px rgba(24,242,163,0.22);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #6fffc8, #dcfff5);
  box-shadow: 0 12px 40px rgba(24,242,163,0.34);
  transform: translateY(-2px);
}

.btn-cta {
  min-height: 54px;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* =====================================================
   GLASS CARD
   ===================================================== */
.glass {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.glass:hover {
  border-color: rgba(255,255,255,0.14);
}

/* =====================================================
   SECTION GRIDS
   ===================================================== */
.section-grid { display:grid; gap:16px; }

.hero-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.content-grid {
  margin-top: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* =====================================================
   DEAL HERO PANEL
   ===================================================== */
.deal-panel {
  min-height: 340px;
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

/* Gradient accent bar at bottom */
.deal-panel::after {
  display: none;
}

/* Floating glow orb inside hero */
.deal-panel::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  display: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(77,163,255,0.25);
  border-radius: 999px;
  color: #b9d9ff;
  background: rgba(77,163,255,0.09);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.deal-copy h2 {
  max-width: none;
  margin-top: 20px;
  font-size: clamp(32px, 4.5vw, 66px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}

/* Gradient text on headline */
.deal-copy h2 .gradient-text {
  color: var(--text);
}

.deal-copy p {
  max-width: none;
  margin-top: 18px;
  color: #c7d0e3;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.7;
}

.deal-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 10px;
}

.strip-item {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.strip-item:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}

.strip-item span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.strip-item strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(17px, 2vw, 26px);
  color: var(--text);
  line-height: 1.05;
  font-weight: 800;
}

/* =====================================================
   UPLOAD CARD (RIGHT COLUMN HERO)
   ===================================================== */
.drop-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
}

.drop-zone {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  border: 1px dashed rgba(255,255,255,0.22);
  border-radius: var(--radius);
  background: rgba(5,7,13,0.5);
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.drop-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(24,242,163,0.04));
  opacity: 0;
  transition: opacity var(--transition);
}
.drop-zone:hover::before { opacity: 1; }
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--green);
  background: rgba(24,242,163,0.06);
}

.drop-zone i {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 34px;
  transition: transform var(--transition);
}
.drop-zone:hover i { transform: scale(1.1) translateY(-3px); }
.drop-zone h3 { font-size: 16px; font-weight: 700; line-height: 1.3; }
.drop-zone p  { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.file-meta {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  font-size: 12px;
}
.file-meta strong { color: var(--text); }

/* =====================================================
   METRIC CARDS
   ===================================================== */
.metric {
  min-height: 160px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.metric::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--accent-color, var(--blue));
  box-shadow: 0 0 12px var(--accent-color, var(--blue));
}

/* Glow orb behind metric */
.metric::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-color, var(--blue)) 0%, transparent 70%);
  opacity: .08;
  pointer-events: none;
  transition: opacity var(--transition);
}
.metric:hover::after { opacity: .18; }
.metric:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.16); }

.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.metric-head i { color: var(--accent-color, var(--blue)); font-size: 15px; }

.metric-value {
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  animation: countUp .6s cubic-bezier(.4,0,.2,1) both;
}

.metric-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* =====================================================
   PANELS (CHARTS, TABLES, ETC.)
   ===================================================== */
.panel { padding: 20px; }

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
}
.panel-title i { color: var(--green); }
.panel-kicker { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.chart-box {
  height: 320px;
  position: relative;
}

/* Category rows */
.category-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--transition);
}
.category-row:last-child { border-bottom: none; }
.category-row:hover { background: rgba(255,255,255,0.018); border-radius: 6px; padding-left:6px; padding-right:6px; margin: 0 -6px; }

.cat-name { display:flex; align-items:center; gap:10px; font-weight:800; font-size:14px; }
.cat-dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--cat-color);
  box-shadow: 0 0 14px var(--cat-color);
  flex: 0 0 auto;
}
.cat-range { margin-top: 3px; color: var(--muted); font-size: 11px; }
.cat-value { text-align:right; font-weight:800; font-size:14px; }
.cat-value small { display:block; margin-top:3px; color:var(--muted); font-size:11px; font-weight:700; }

/* =====================================================
   SOCIAL PROOF / CTA BANNER
   ===================================================== */
.cta-banner {
  margin-top: 20px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(24,242,163,0.1) 0%, rgba(77,163,255,0.07) 50%, rgba(155,107,255,0.06) 100%);
  border: 1px solid rgba(24,242,163,0.22);
  flex-wrap: wrap;
}

.cta-banner::before {
  display: none;
}

.cta-banner-copy { flex: 1; min-width: 220px; }
.cta-banner-copy .eyebrow { margin-bottom: 12px; }
.cta-banner-copy h3 {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.2;
}
.cta-banner-copy p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.cta-banner-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* =====================================================
   TRUST BADGES
   ===================================================== */
.trust-strip {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  transition: border-color var(--transition), color var(--transition);
}
.trust-badge i { font-size: 12px; }
.trust-badge:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

/* =====================================================
   TABLE SECTION
   ===================================================== */
.table-section { margin-top: 16px; }

.table-controls {
  display: grid;
  grid-template-columns: minmax(200px,1fr) 220px 170px;
  gap: 10px;
  margin-bottom: 14px;
}

.field { display:grid; gap:7px; }
.field label { color:var(--muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }

.field input, .field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  color: var(--text);
  background: rgba(0,0,0,0.28);
  padding: 0 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus {
  border-color: rgba(77,163,255,0.5);
  box-shadow: 0 0 0 3px rgba(77,163,255,0.1);
}

/* =====================================================
   CUSTOM SELECT DROPDOWN
   ===================================================== */
.custom-select {
  position: relative;
  min-width: 160px;
}

.custom-select-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 14px;
  height: 38px;
  background: rgba(13, 18, 31, 0.55);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.custom-select-btn:hover {
  border-color: rgba(77,163,255,0.35);
  background: rgba(20, 28, 48, 0.75);
}

.custom-select.open .custom-select-btn {
  border-color: rgba(77,163,255,0.55);
  background: rgba(20, 28, 48, 0.88);
  box-shadow: 0 0 0 3px rgba(77,163,255,0.08);
}

.custom-select-icon {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}

.custom-select.open .custom-select-icon {
  transform: rotate(180deg);
  color: var(--blue);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 100%;
  background: rgba(8, 13, 26, 0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(77,163,255,0.06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(.4,0,.2,1);
  z-index: 200;
}

.custom-select.open .custom-select-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.custom-select-option {
  padding: 9px 14px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background: rgba(77,163,255,0.09);
  color: var(--text);
}

.custom-select-option.selected {
  color: var(--green);
  background: rgba(24,242,163,0.07);
  font-weight: 600;
}

.custom-select-option.selected::before {
  content: '✓ ';
  font-size: 11px;
}


.search-box { position:relative; }
.search-box i { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--muted); pointer-events:none; }
.search-box input { padding-left:36px; }

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table { width:100%; min-width:900px; border-collapse:collapse; }

th, td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: rgba(8,12,22,0.97);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition);
}
th:hover { color: var(--text); }

td { color: #dbe3f4; font-size: 13px; }

tr { transition: background var(--transition); }
tr:hover td { background: rgba(255,255,255,0.028); }

/* Row entrance animation */
tbody tr {
  animation: fadeInUp .3s ease both;
}
tbody tr:nth-child(1)  { animation-delay: .04s; }
tbody tr:nth-child(2)  { animation-delay: .08s; }
tbody tr:nth-child(3)  { animation-delay: .12s; }
tbody tr:nth-child(4)  { animation-delay: .16s; }
tbody tr:nth-child(5)  { animation-delay: .20s; }
tbody tr:nth-child(6)  { animation-delay: .24s; }
tbody tr:nth-child(7)  { animation-delay: .28s; }
tbody tr:nth-child(8)  { animation-delay: .32s; }
tbody tr:nth-child(9)  { animation-delay: .36s; }
tbody tr:nth-child(10) { animation-delay: .40s; }

.lead-id { color: #bdd7ff; font-weight: 800; }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--tag-border);
  color: var(--tag-color);
  background: var(--tag-bg);
  font-size: 11px;
  font-weight: 800;
}

.blurred-data {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  transition: filter .3s ease;
  opacity: .85;
}

/* Category tag column — blurred but retains tag pill styling */
.cat-tag-blur {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--tag-border, rgba(255,255,255,0.14));
  background: var(--tag-bg, rgba(255,255,255,0.05));
  color: var(--tag-color, #9aa6bd);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Name column blur — wider blur for readability hint */
.col-blur-name {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.page-buttons { display:flex; gap:8px; }
.page-buttons button:disabled { cursor:not-allowed; opacity:.4; transform:none !important; }

/* =====================================================
   TOAST
   ===================================================== */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: 380px;
  padding: 14px 16px;
  border: 1px solid rgba(24,242,163,0.3);
  border-radius: var(--radius);
  color: #dffff2;
  background: rgba(6,12,18,0.97);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(24,242,163,0.06);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  font-size: 13px;
  line-height: 1.45;
}
.toast.visible { opacity:1; transform:translateY(0); }

/* =====================================================
   URGENCY PILL
   ===================================================== */
.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid rgba(244,189,80,0.35);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(244,189,80,0.08);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.urgency-badge i { font-size: 10px; }

/* Blinking dot */
.dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex-shrink: 0;
}

/* =====================================================
   FOOTER
   ===================================================== */
.page-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 12px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1180px) {
  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 760px) {
  .app-shell { width: calc(100% - 20px); padding-top: 14px; }

  .topbar, .panel-header, .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions { justify-content: stretch; }
  .top-actions > * { width: 100%; }

  .deal-strip,
  .metric-grid,
  .table-controls,
  .cta-banner { 
    grid-template-columns: 1fr;
  }

  .deal-panel { min-height: auto; }
  .deal-copy h2 { white-space: normal; font-size: clamp(28px, 8vw, 36px); }
  .chart-box  { height: 260px; }
  .cta-banner {
    flex-direction: column;
    text-align: center;
  }
  .cta-banner-actions { justify-content: center; }
}

/* =====================================================
   ADMIN FLOATING CONTROL & MODAL STYLES
   ===================================================== */
.admin-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: 0 8px 32px rgba(24, 242, 163, 0.35);
  min-height: 48px;
  font-weight: 800;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 20px;
}

.admin-modal-content {
  max-width: 500px;
  width: 100%;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 14, 24, 0.95);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.close-btn {
  font-size: 32px;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
}

.close-btn:hover {
  color: var(--text);
}

.admin-modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  gap: 16px;
}

.tab-btn {
  padding: 8px 16px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  cursor: pointer;
}

.tab-btn.active {
  color: var(--green);
  border-color: var(--green);
}

.tab-content {
  width: 100%;
}

.key-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.key-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.key-delete-btn {
  color: var(--danger);
  font-size: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 107, 124, 0.2);
  border-radius: 6px;
  background: rgba(255, 107, 124, 0.05);
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
}

.key-delete-btn:hover {
  background: rgba(255, 107, 124, 0.15);
  border-color: var(--danger);
}
