/* ── Variables ─────────────────────────────────────────────────────── */
/* ── Variables ─────────────────────────────────────────────────────── */
:root {
  --navy:        #0d1b3e;
  --navy-light:  #1a2f5a;
  --navy-mid:    #243a6e;
  --green:       #22c55e;
  --green-light: #4ade80;
  --green-pale:  #dcfce7;
  --green-dark:  #16a34a;
  --white:       #ffffff;
  --off-white:   #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-600:    #475569;
  --red:         #ef4444;
  --orange:      #f97316;
  
  /* 💥 UPDATED FONTS: Tijori Finance Style */
  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head:   'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --radius:      10px;
  --shadow:      0 4px 24px rgba(13,27,62,0.10);
  --shadow-sm:   0 2px 8px rgba(13,27,62,0.07);
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--navy);
  min-height: 100vh;
}
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }

/* ── Navbar ─────────────────────────────────────────────────────────── */
.navbar {
  background: var(--navy);
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(13,27,62,0.25);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { font-size: 1.4rem; color: var(--green); }
.nav-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.03em;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--green); }
.nav-user {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 24px;
}
.nav-logout {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.nav-logout:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* ── Flash Messages ──────────────────────────────────────────────────── */
.flash-container { position: fixed; top: 68px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.flash {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  max-width: 360px;
}
.flash-success { background: var(--green-pale); color: var(--green-dark); border: 1px solid #bbf7d0; }
.flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

/* ── Auth Layout ─────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-left {
  background: var(--navy);
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34,197,94,0.15) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
.auth-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.brand-logo { font-size: 2.5rem; color: var(--green); }
.brand-name {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--white);
  line-height: 1.1;
}
.brand-tagline { color: rgba(255,255,255,0.6); font-size: 1rem; margin-bottom: 32px; line-height: 1.6; }
.brand-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.brand-features li {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  padding-left: 20px;
  position: relative;
}
.brand-features li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--green);
}
.trial-box {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 8px;
}
.trial-badge {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--green-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.trial-box p { color: rgba(255,255,255,0.6); font-size: 0.875rem; line-height: 1.6; }

.auth-right {
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}
.auth-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}
.auth-card.wide { max-width: 520px; }
.auth-heading {
  font-family: var(--font-head);
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.auth-sub { color: var(--gray-400); font-size: 0.875rem; margin-bottom: 28px; }

/* ── Tab Group ───────────────────────────────────────────────────────── */
.tab-group {
  display: flex;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}
.tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--gray-400);
  transition: all 0.2s;
}
.tab.active { background: var(--navy); color: var(--white); }

/* ── Form Elements ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-weight: 400; color: var(--gray-400); text-transform: none; font-size: 0.75rem; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--gray-400);
  font-size: 0.8rem;
}
.divider::before, .divider::after {
  content: ''; flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ── Radio Group ─────────────────────────────────────────────────────── */
.radio-group { display: flex; gap: 16px; }
.radio-option {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 0.9rem; color: var(--navy);
}
.radio-option input[type="radio"] { accent-color: var(--green); }
.reg-hint { color: var(--gray-400); font-size: 0.8rem; }

/* ── Validate Row ────────────────────────────────────────────────────── */
.input-validate-row { display: flex; gap: 10px; }
.input-validate-row input { flex: 1; }
.btn-validate {
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-validate:hover { background: var(--navy-mid); }

.validation-msg { font-size: 0.82rem; margin-top: 6px; padding: 0 2px; }
.validation-msg.success { color: var(--green-dark); }
.validation-msg.error { color: var(--red); }
.validation-msg.warning { color: var(--orange); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  width: 100%;
  padding: 12px;
  background: none;
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s;
  margin-bottom: 12px;
}
.btn-secondary:hover { border-color: var(--navy); }

.auth-footer { text-align: center; margin-top: 20px; font-size: 0.875rem; color: var(--gray-400); }
.inline-error { color: var(--red); font-size: 0.85rem; margin-top: 12px; text-align: center; }

/* ── Dashboard ───────────────────────────────────────────────────────── */
.dashboard-page { padding: 28px 40px; }
.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}
.dashboard-header h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--navy);
}
.dash-sub { color: var(--gray-400); font-size: 0.875rem; margin-top: 4px; }
.dash-status-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.status-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}
.status-badge.trial { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.status-badge.active { background: var(--green-pale); color: var(--green-dark); border: 1px solid #bbf7d0; }

.reg-badge {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: monospace;
}

.warning-banner {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 20px;
  color: #92400e;
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.powerbi-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid var(--gray-200);
}
.powerbi-frame {
  width: 100%;
  height: calc(100vh - 200px);
  min-height: 600px;
  display: block;
}

/* ── Admin ───────────────────────────────────────────────────────────── */
.admin-page { padding: 28px 40px; }
.admin-header { margin-bottom: 28px; }
.admin-header h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--navy);
}

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.stat-card.green { border-left: 4px solid var(--green); }
.stat-card.red   { border-left: 4px solid var(--red); }
.stat-card.orange{ border-left: 4px solid var(--orange); }
.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--navy);
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--gray-400); margin-top: 4px; }

.admin-table-wrap {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead { background: var(--navy); }
.admin-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
  color: var(--navy);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr.row-expired td { opacity: 0.55; }
.admin-table tr:hover td { background: var(--gray-100); }

.user-name { font-weight: 500; }
.user-email { font-size: 0.78rem; color: var(--gray-400); margin-top: 2px; }

.reg-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-right: 6px;
}
.reg-tag.sebi { background: #dbeafe; color: #1e40af; }
.reg-tag.amfi { background: var(--green-pale); color: var(--green-dark); }
.reg-num { font-family: monospace; font-size: 0.82rem; color: var(--gray-600); }

.type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.type-badge.trial    { background: #fef3c7; color: #92400e; }
.type-badge.monthly  { background: #dbeafe; color: #1e40af; }
.type-badge.quarterly{ background: #ede9fe; color: #5b21b6; }
.type-badge.annual   { background: var(--green-pale); color: var(--green-dark); }
.type-badge.custom   { background: var(--gray-100); color: var(--gray-600); }
.type-badge.paid     { background: var(--green-pale); color: var(--green-dark); }

.text-warn { color: var(--orange); font-weight: 600; }
.text-ok { color: var(--green-dark); }
.text-expired { color: var(--red); font-weight: 600; }

.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-dot.green { background: var(--green); }
.status-dot.red   { background: var(--red); }

.btn-sm {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-right: 4px;
  transition: opacity 0.2s;
}
.btn-sm:hover { opacity: 0.8; }
.btn-edit   { background: var(--navy); color: var(--white); }
.btn-revoke { background: #fee2e2; color: var(--red); }

/* ── Modal ───────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(13,27,62,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  width: 400px;
  box-shadow: 0 20px 60px rgba(13,27,62,0.25);
  animation: modalIn 0.25s ease;
}
.modal h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 24px;
}
.modal-actions { display: flex; gap: 12px; margin-top: 8px; }
.modal-actions .btn-primary { flex: 1; }
.modal-actions .btn-secondary { flex: 1; width: auto; }
@keyframes modalIn { from { opacity:0; transform: scale(0.95); } to { opacity:1; transform: scale(1); } }

/* ── Expired Page ────────────────────────────────────────────────────── */
.expired-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.expired-card {
  text-align: center;
  background: var(--white);
  border-radius: 16px;
  padding: 56px 48px;
  max-width: 440px;
  box-shadow: var(--shadow);
}
.expired-icon { font-size: 3rem; margin-bottom: 20px; }
.expired-card h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.expired-card p { color: var(--gray-600); font-size: 0.9rem; line-height: 1.6; margin-bottom: 8px; }
.expired-cta { font-weight: 600; color: var(--navy); }
.expired-card .btn-primary { width: auto; padding: 12px 32px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .dashboard-page, .admin-page { padding: 20px; }
  .admin-stats-row { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .navbar { padding: 0 20px; }
  .nav-links { gap: 14px; }
  .nav-user { display: none; }
  .admin-stats-row { grid-template-columns: 1fr 1fr; }
}

/* ── Dash App Styles ─────────────────────────────────────────────────────── */
.dash-root {
  min-height: 100vh;
  background: var(--off-white);
  font-family: var(--font-body);
}
.dash-navbar {
  background: var(--navy);
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(13,27,62,0.2);
}
.nav-expiry {
  color: #f97316;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(249,115,22,0.12);
  border-radius: 20px;
}
.nav-back {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-back:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Tab bar */
.tab-bar-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 32px;
  position: sticky; top: 56px; z-index: 99;
}
.tab-bar { display: flex; gap: 4px; }
.dash-tab {
  padding: 14px 20px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.dash-tab:hover { color: var(--navy); }
.dash-tab.active { color: var(--green-dark); border-bottom-color: var(--green); font-weight: 600; }

/* Tab pane */
.tab-pane { padding: 24px 32px; display: flex; flex-direction: column; gap: 20px; }

/* KPI row */
.kpi-row { display: flex; gap: 16px; flex-wrap: wrap; }
.kpi-card {
  background: var(--white);
  border-radius: 12px;
  padding: 18px 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  min-width: 160px;
  flex: 1;
}
.kpi-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.kpi-title { font-size: 0.8rem; font-weight: 600; color: var(--navy); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-sub { font-size: 0.75rem; color: var(--gray-400); margin-top: 3px; }

/* Cards */
.dash-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header-row {
  padding: 14px 20px 10px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--gray-100);
}
.card-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.card-badge {
  font-size: 0.72rem;
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}
.card-body-inner { padding: 4px 0; }

/* Two-col chart row */
.chart-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Table search */
.table-controls { padding: 12px 16px 4px; }
.table-search {
  padding: 8px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--navy);
  width: 280px;
  outline: none;
  transition: border-color 0.2s;
}
.table-search:focus { border-color: var(--green); }

/* Auth denied */
.auth-denied-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh;
}
.auth-denied-card {
  text-align: center;
  background: var(--white);
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow);
  max-width: 380px;
}
.btn-primary-inline {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 32px;
  background: var(--green);
  color: var(--white);
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  transition: background 0.2s;
}
.btn-primary-inline:hover { background: var(--green-dark); color: var(--white); }

@media (max-width: 900px) {
  .chart-row.two-col { grid-template-columns: 1fr; }
  .tab-pane { padding: 16px; }
  .tab-bar-wrap { padding: 0 16px; }
  .dash-navbar { padding: 0 16px; }
}

/* ── Card title bar (new style) ──────────────────────────────────────────── */
.card-title-bar {
  padding: 13px 18px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--gray-100);
  letter-spacing: 0.01em;
}

/* ── Status bar ──────────────────────────────────────────────────────────── */
.status-bar {
  padding: 10px 32px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 20px;
}
.status-bar.trial { background: #fef9c3; border-bottom: 1px solid #fde68a; }
.status-bar.warn  { background: #fff7ed; border-bottom: 1px solid #fed7aa; }
.status-trial { color: #92400e; font-weight: 600; }
.status-warn  { color: #9a3412; font-weight: 600; }
.status-hint  { color: #a16207; font-size: 0.8rem; }


/* ======================================================================
   MintingM Quant Dashboard — Extended Styles
   ====================================================================== */

/* Logo in navbar */
.nav-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  /*filter: brightness(0) invert(1);*/
}

/* Elevated shadow on every card & KPI */
.dash-card {
  box-shadow: 0 4px 20px rgba(13,27,62,0.10), 0 1px 4px rgba(13,27,62,0.06);
  border: 1px solid #e8edf5;
  transition: box-shadow 0.2s;
}
.dash-card:hover {
  box-shadow: 0 8px 32px rgba(13,27,62,0.14), 0 2px 8px rgba(13,27,62,0.07);
}
.kpi-card {
  box-shadow: 0 4px 16px rgba(13,27,62,0.09), 0 1px 3px rgba(13,27,62,0.05);
  border: 1px solid #e8edf5;
  transition: box-shadow 0.2s, transform 0.15s;
}
.kpi-card:hover { box-shadow: 0 8px 24px rgba(13,27,62,0.13); }

/* Clickable KPI card (Buy Signals) */
.kpi-card.kpi-clickable {
  cursor: pointer;
  border: 2px solid var(--green-pale);
  position: relative;
  overflow: hidden;
}
.kpi-card.kpi-clickable::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
}
.kpi-card.kpi-clickable:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(34,197,94,0.18);
}
.kpi-card.kpi-clickable:active { transform: translateY(0); }

/* Screener filter bar */
.screener-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--gray-100);
  background: var(--off-white);
}

.screener-search-input {
  padding: 9px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--navy);
  background: var(--white);
  width: 220px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.screener-search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
}

.screener-dropdown {
  min-width: 220px;
  flex: 1;
  font-size: 0.875rem;
}
.screener-dropdown-sm { min-width: 150px; flex: 0 0 auto; }

/* Export CSV button */
.screener-export-btn {
  margin-left: auto;
  padding: 9px 18px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(13,27,62,0.18);
}
.screener-export-btn:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 14px rgba(22,163,74,0.28);
  transform: translateY(-1px);
}
.screener-export-btn:active { transform: translateY(0); }

/* Screener hint text */
.screener-hint {
  font-size: 0.78rem;
  color: var(--gray-400);
  padding: 6px 18px 4px;
  margin: 0;
  font-style: italic;
}

/* Dash DataTable filter row polish */
.dash-spreadsheet td.dash-filter input {
  border: 1px solid var(--gray-200) !important;
  border-radius: 5px !important;
  padding: 4px 8px !important;
  font-size: 0.78rem !important;
  font-family: var(--font-body) !important;
  background: #f8fafc !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dash-spreadsheet td.dash-filter input:focus {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.1) !important;
  background: var(--white) !important;
  outline: none;
}

/* Tab bar shadow */
.tab-bar-wrap {
  box-shadow: 0 2px 8px rgba(13,27,62,0.07);
}

/* Navbar stronger shadow */
.dash-navbar {
  box-shadow: 0 2px 16px rgba(13,27,62,0.28);
}

/* Screener — clickable symbol links */
.dash-spreadsheet td a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--green);
  transition: color 0.15s;
}
.dash-spreadsheet td a:hover {
  color: var(--green-dark);
}