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

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0B0B0F;
  --sidebar-bg: #111111;
  --card-bg: #16161A;
  --card-elevated: #1C1C22;
  --gold: #C6A85E;
  --gold-light: #D4BC7A;
  --gold-dark: #A8903E;
  --text: #F5F5F5;
  --text-secondary: #999999;
  --text-muted: #666666;
  --separator: #222222;
  --input-bg: #1A1A1E;
  --input-border: #2A2A2E;
  --positive: #34C759;
  --negative: #FF3B30;
  --warning: #FF9F0A;
  --sidebar-width: 260px;
  --sidebar-collapsed: 70px;
  --header-height: 64px;
  --radius: 12px;
  --radius-lg: 16px;
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ====== SCROLLBAR ====== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ====== LOGIN ====== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
}
.login-card {
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 420px;
  max-width: 90vw;
  animation: fadeSlideUp 0.5s ease;
}
.login-logo {
  text-align: center;
  margin-bottom: 40px;
}
.login-logo h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--text);
}
.login-logo .gold-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 12px auto;
  border-radius: 1px;
}
.login-logo p {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 5px;
  font-weight: 500;
}
.login-error {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: var(--negative);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}
.login-error.show { display: block; }

/* ====== FORM ELEMENTS ====== */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus {
  border-color: var(--gold);
}
.form-input::placeholder {
  color: var(--text-muted);
}
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

/* ====== BUTTONS ====== */
.btn {
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-gold {
  background: var(--gold);
  color: #000;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: rgba(198, 168, 94, 0.1);
}
.btn-danger {
  background: rgba(255, 59, 48, 0.15);
  color: var(--negative);
  border: 1px solid rgba(255, 59, 48, 0.3);
}
.btn-danger:hover {
  background: rgba(255, 59, 48, 0.25);
}
.btn-success {
  background: rgba(52, 199, 89, 0.15);
  color: var(--positive);
  border: 1px solid rgba(52, 199, 89, 0.3);
}
.btn-success:hover {
  background: rgba(52, 199, 89, 0.25);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}
.btn-full { width: 100%; justify-content: center; }
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-secondary);
  border: none;
  transition: all 0.2s;
}
.btn-icon:hover { background: var(--card-elevated); color: var(--text); }

/* ====== LAYOUT ====== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ====== SIDEBAR ====== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--separator);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: width 0.3s ease;
}
.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}
.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid var(--separator);
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--header-height);
}
.sidebar-brand .brand-text h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
}
.sidebar-brand .brand-text p {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 3px;
  font-weight: 500;
  margin-top: 2px;
}
.sidebar-brand .brand-icon {
  width: 32px;
  height: 32px;
  background: rgba(198, 168, 94, 0.15);
  border: 1px solid var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.sidebar.collapsed .brand-text { display: none; }

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
}
.nav-item:hover {
  background: rgba(198, 168, 94, 0.08);
  color: var(--text);
}
.nav-item.active {
  background: rgba(198, 168, 94, 0.12);
  color: var(--gold);
}
.nav-item .nav-icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  font-size: 16px;
}
.nav-item .nav-label {
  transition: opacity 0.2s;
}
.sidebar.collapsed .nav-label { opacity: 0; width: 0; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 12px; }

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--separator);
}

/* ====== MAIN CONTENT ====== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s ease;
}
.sidebar.collapsed ~ .main-content,
.main-content.expanded {
  margin-left: var(--sidebar-collapsed);
}

/* ====== HEADER ====== */
.top-header {
  height: var(--header-height);
  border-bottom: 1px solid var(--separator);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-left .toggle-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}
.header-left .toggle-btn:hover { color: var(--text); }
.header-left .page-title {
  font-size: 20px;
  font-weight: 700;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-right .notif-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--separator);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.notif-btn:hover { border-color: var(--gold); color: var(--gold); }
.notif-btn .notif-dot {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--separator);
  cursor: pointer;
  transition: all 0.2s;
}
.admin-profile:hover { border-color: var(--gold); }
.admin-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(198, 168, 94, 0.15);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
}
.admin-info .admin-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.admin-info .admin-role {
  font-size: 11px;
  color: var(--text-muted);
}

/* ====== PAGE CONTENT ====== */
.page-content {
  padding: 28px;
  overflow: hidden;
}

/* ====== STAT CARDS ====== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all 0.3s;
  animation: fadeSlideUp 0.5s ease both;
}
.stat-card:hover {
  border-color: rgba(198, 168, 94, 0.3);
  transform: translateY(-2px);
}
.stat-card .stat-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.stat-card .stat-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.stat-card .stat-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}
.stat-change.positive {
  background: rgba(52, 199, 89, 0.1);
  color: var(--positive);
}
.stat-change.negative {
  background: rgba(255, 59, 48, 0.1);
  color: var(--negative);
}

/* ====== CHARTS ====== */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 900px) { .charts-grid { grid-template-columns: 1fr; } }
.chart-card {
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.chart-card .chart-title {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ====== TABLE ====== */
.table-card {
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--separator);
}
.table-header h3 {
  font-size: 16px;
  font-weight: 700;
}
.table-header .table-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.search-input {
  padding: 9px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  width: 220px;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--gold); }
.search-input::placeholder { color: var(--text-muted); }

table {
  width: 100%;
  border-collapse: collapse;
}
table.table-fixed {
  table-layout: fixed;
}
thead th {
  text-align: left;
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--separator);
}
tbody td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--separator);
  overflow: hidden;
  text-overflow: ellipsis;
}
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: rgba(198, 168, 94, 0.04); }
tbody tr:last-child td { border-bottom: none; }

/* ====== STATUS BADGES ====== */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: normal;
  line-height: 1.3;
  text-align: center;
  max-width: 100%;
}
.badge-active { background: rgba(52, 199, 89, 0.12); color: var(--positive); }
.badge-pending { background: rgba(255, 159, 10, 0.12); color: var(--warning); }
.badge-inactive { background: rgba(255, 59, 48, 0.12); color: var(--negative); }
.badge-approved { background: rgba(52, 199, 89, 0.12); color: var(--positive); }
.badge-rejected { background: rgba(255, 59, 48, 0.12); color: var(--negative); }
.badge-gold { background: rgba(198, 168, 94, 0.12); color: var(--gold); }

/* ====== MODAL ====== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  width: 520px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--separator);
}
.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--input-bg);
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--card-elevated); color: var(--text); }
.modal-body {
  padding: 24px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid var(--separator);
}

/* ====== CARDS GRID ====== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.opp-card {
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all 0.3s;
}
.opp-card:hover {
  border-color: rgba(198, 168, 94, 0.3);
  transform: translateY(-2px);
}
.opp-card .opp-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  background: rgba(198,168,94,0.1);
  padding: 4px 10px;
  border-radius: 6px;
}
.opp-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.opp-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.opp-card .opp-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.opp-card .opp-meta span { color: var(--text-muted); }
.opp-card .opp-meta strong { color: var(--text); }

/* ====== FILTER BAR ====== */
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-bar select {
  padding: 9px 34px 9px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.filter-bar select:focus { border-color: var(--gold); }

/* ====== SETTINGS ====== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}
.settings-card {
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.settings-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--separator);
}
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--separator);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row .toggle-info .toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}
.toggle-row .toggle-info .toggle-desc {
  font-size: 12px;
  color: var(--text-muted);
}
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--input-bg);
  border-radius: 13px;
  cursor: pointer;
  transition: 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  left: 3px;
  top: 3px;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--gold);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

/* ====== ANIMATIONS ====== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-in { animation: fadeIn 0.4s ease; }
.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.08s; }
.stat-card:nth-child(3) { animation-delay: 0.16s; }
.stat-card:nth-child(4) { animation-delay: 0.24s; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1200px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sidebar {
    width: var(--sidebar-width);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }
  .sidebar.collapsed {
    width: var(--sidebar-width);
    transform: translateX(-100%);
  }
  .sidebar.collapsed .brand-text { display: block; }
  .sidebar.collapsed .nav-label { opacity: 1; width: auto; }
  .sidebar.collapsed .nav-item { justify-content: flex-start; padding: 10px 20px; }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .sidebar-overlay.active {
    display: block;
    opacity: 1;
  }
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .page-content { padding: 16px; }

  .stats-grid { grid-template-columns: 1fr; gap: 10px; }
  .charts-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr; }
  .stat-card { min-width: 0; }

  .table-card { overflow: visible; }
  .table-card table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .table-card thead, .table-card tbody, .table-card tr { display: table; width: 100%; table-layout: auto; }
  .table-header { flex-direction: column; align-items: stretch; gap: 10px; }
  .table-header h3 { text-align: left; }
  .table-actions { flex-direction: column; gap: 8px; }
  .table-actions .search-input { width: 100%; }
  .table-actions .btn { width: 100%; text-align: center; }

  .filter-bar { flex-direction: column; gap: 8px; }
  .filter-bar select, .filter-select { width: 100%; }
  .export-dropdown { width: 100%; }
  .export-dropdown > .btn { width: 100%; text-align: center; }
  .export-menu { width: 100%; }

  .portfolio-tabs { width: 100%; display: flex; }
  .portfolio-tab-btn { flex: 1; text-align: center; }
  div:has(> .portfolio-tabs) { flex-direction: column !important; align-items: stretch !important; }
  div:has(> .portfolio-tabs) > .btn { width: 100%; text-align: center; }

  .scheme-card { margin-bottom: 12px; }
  .scheme-card-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .scheme-stats { width: 100%; flex-wrap: wrap; gap: 8px; }
  .scheme-stat { min-width: 0; flex: 1; }
  .scheme-expand-icon { position: absolute; top: 16px; right: 16px; }
  .scheme-card-header { position: relative; }
  .scheme-investor-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .cards-grid { grid-template-columns: 1fr; }
  .opp-card { margin-bottom: 12px; }
  .opp-card-actions { flex-direction: row; justify-content: space-between; }

  .investor-header-actions { flex-direction: column; gap: 8px; }
  .investor-header-actions .btn { width: 100%; text-align: center; }

  .modal { width: 95vw; max-width: 95vw; margin: 10px; max-height: 90vh; }
  .modal-body { max-height: 65vh; overflow-y: auto; }

  .top-header { padding: 12px 16px; }
  .header-right .admin-info { display: none; }
  .notif-btn { font-size: 18px; }
}

/* ====== TOAST ====== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--card-elevated);
  border: 1px solid var(--separator);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text);
  animation: fadeSlideUp 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
}
.toast.success { border-color: rgba(52, 199, 89, 0.4); }
.toast.error { border-color: rgba(255, 59, 48, 0.4); }

/* ====== INVESTOR LIFECYCLE BADGES ====== */
.badge-new { background: rgba(198, 168, 94, 0.15); color: #C6A85E; }
.badge-pending-contract { background: rgba(255, 159, 10, 0.15); color: #FF9F0A; }
.badge-pending-invitation { background: rgba(74, 144, 217, 0.15); color: #4A90D9; }
.badge-pending-kyc-upload { background: rgba(168, 85, 247, 0.15); color: #A855F7; }
.badge-pending-kyc-approval { background: rgba(45, 212, 191, 0.15); color: #2DD4BF; }
.badge-contract-signed { background: rgba(52, 199, 89, 0.15); color: #34C759; }
.badge-sign-pending { background: rgba(255, 159, 10, 0.15); color: #FF9F0A; }

/* ====== SUMMARY GRID ====== */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.summary-card {
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  transition: all 0.3s;
}
.summary-card:hover {
  border-color: rgba(198, 168, 94, 0.25);
  transform: translateY(-1px);
}
.summary-card .summary-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.summary-card .summary-info {
  min-width: 0;
}
.summary-card .summary-count {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.summary-card .summary-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #777;
  margin-top: 2px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.summary-icon.icon-total { background: rgba(198, 168, 94, 0.12); color: #C6A85E; }
.summary-icon.icon-new { background: rgba(198, 168, 94, 0.12); color: #C6A85E; }
.summary-icon.icon-contract { background: rgba(255, 159, 10, 0.12); color: #FF9F0A; }
.summary-icon.icon-invitation { background: rgba(74, 144, 217, 0.12); color: #4A90D9; }
.summary-icon.icon-kyc-upload { background: rgba(168, 85, 247, 0.12); color: #A855F7; }
.summary-icon.icon-kyc-approval { background: rgba(45, 212, 191, 0.12); color: #2DD4BF; }
.summary-icon.icon-active { background: rgba(52, 199, 89, 0.12); color: #34C759; }
.summary-icon.icon-inactive { background: rgba(255, 59, 48, 0.12); color: #FF3B30; }
.summary-icon.icon-contract-signed { background: rgba(52, 199, 89, 0.12); color: #34C759; }
.summary-icon.icon-sign-pending { background: rgba(255, 159, 10, 0.12); color: #FF9F0A; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ====== TABLE WRAPPER ====== */
.table-wrapper { overflow-x: auto; max-width: 100%; }
.table-card { max-width: 100%; overflow: hidden; }

/* ====== EXPORT DROPDOWN ====== */
.export-dropdown { position: relative; display: inline-block; }
.export-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: 8px;
  min-width: 180px;
  padding: 6px 0;
  z-index: 10;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.export-menu.show { display: block; }
.export-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 13px;
  transition: background 0.15s;
}
.export-menu a:hover { background: var(--card-elevated); }

/* ====== CHECKBOX GROUP ====== */
.checkbox-group { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.checkbox-group label { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); }

/* ====== KYC PREVIEW ====== */
.kyc-preview {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}
.kyc-preview .kyc-doc-icon { font-size: 48px; margin-bottom: 12px; }
.kyc-preview .kyc-doc-name { font-size: 15px; font-weight: 600; color: var(--text); }
.kyc-preview .kyc-doc-info { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ====== ACTION BUTTONS ====== */
.btn-action {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-action.action-gold { background: rgba(198, 168, 94, 0.18); color: #C6A85E; }
.btn-action.action-gold:hover { background: rgba(198, 168, 94, 0.3); }
.btn-action.action-orange { background: rgba(255, 159, 10, 0.18); color: #FF9F0A; }
.btn-action.action-orange:hover { background: rgba(255, 159, 10, 0.3); }
.btn-action.action-blue { background: rgba(74, 144, 217, 0.18); color: #4A90D9; }
.btn-action.action-blue:hover { background: rgba(74, 144, 217, 0.3); }
.btn-action.action-purple { background: rgba(168, 85, 247, 0.18); color: #A855F7; }
.btn-action.action-purple:hover { background: rgba(168, 85, 247, 0.3); }
.btn-action.action-teal { background: rgba(45, 212, 191, 0.18); color: #2DD4BF; }
.btn-action.action-teal:hover { background: rgba(45, 212, 191, 0.3); }
.btn-action.action-danger { background: rgba(255, 59, 48, 0.18); color: #FF3B30; }
.btn-action.action-danger:hover { background: rgba(255, 59, 48, 0.3); }
.btn-action.action-success { background: rgba(52, 199, 89, 0.18); color: #34C759; }
.btn-action.action-success:hover { background: rgba(52, 199, 89, 0.3); }

/* ====== ANIMATED TOAST ====== */
@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}
@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}
@keyframes toastCheckPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--card-elevated);
  border: 1px solid var(--separator);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 300px;
  max-width: 420px;
  position: relative;
  overflow: hidden;
  animation: toastSlideIn 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
  border-left: 4px solid transparent;
}
.toast.toast-exit {
  animation: toastSlideOut 0.3s ease forwards;
}
.toast.success { border-left-color: var(--positive); }
.toast.error { border-left-color: var(--negative); }
.toast .toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  animation: toastCheckPop 0.4s ease 0.15s both;
}
.toast.success .toast-icon { background: rgba(52, 199, 89, 0.15); color: var(--positive); }
.toast.error .toast-icon { background: rgba(255, 59, 48, 0.15); color: var(--negative); }
.toast .toast-msg { flex: 1; }
.toast .toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s;
  flex-shrink: 0;
}
.toast .toast-close:hover { color: var(--text); }
.toast .toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 0 var(--radius);
}
.toast.success .toast-progress { background: var(--positive); }
.toast.error .toast-progress { background: var(--negative); }

/* ====== BUTTON LOADING STATE ====== */
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}
.btn-loading {
  pointer-events: none;
  opacity: 0.85;
}
.btn-loading .btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

/* ====== PAGE REVEAL ANIMATIONS ====== */
@keyframes revealFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rowFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.summary-card {
  animation: revealFadeUp 0.5s ease both;
}
.summary-card:nth-child(1) { animation-delay: 0s; }
.summary-card:nth-child(2) { animation-delay: 0.05s; }
.summary-card:nth-child(3) { animation-delay: 0.1s; }
.summary-card:nth-child(4) { animation-delay: 0.15s; }
.summary-card:nth-child(5) { animation-delay: 0.2s; }
.summary-card:nth-child(6) { animation-delay: 0.25s; }
.summary-card:nth-child(7) { animation-delay: 0.3s; }
.summary-card:nth-child(8) { animation-delay: 0.35s; }
.summary-card:nth-child(9) { animation-delay: 0.4s; }
.summary-card:nth-child(10) { animation-delay: 0.45s; }
.table-card {
  animation: revealFadeUp 0.5s ease 0.3s both;
}
#investorsBody tr {
  animation: rowFadeIn 0.35s ease both;
}
#investorsBody tr:nth-child(1) { animation-delay: 0.35s; }
#investorsBody tr:nth-child(2) { animation-delay: 0.4s; }
#investorsBody tr:nth-child(3) { animation-delay: 0.45s; }
#investorsBody tr:nth-child(4) { animation-delay: 0.5s; }
#investorsBody tr:nth-child(5) { animation-delay: 0.55s; }
#investorsBody tr:nth-child(6) { animation-delay: 0.6s; }
#investorsBody tr:nth-child(7) { animation-delay: 0.65s; }
#investorsBody tr:nth-child(8) { animation-delay: 0.7s; }
#investorsBody tr:nth-child(9) { animation-delay: 0.75s; }
#investorsBody tr:nth-child(10) { animation-delay: 0.8s; }
#investorsBody tr:nth-child(11) { animation-delay: 0.85s; }
#investorsBody tr:nth-child(12) { animation-delay: 0.9s; }

/* ====== FILE UPLOAD AREA ====== */
.file-upload-area {
  border: 2px dashed var(--input-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--input-bg);
  margin-bottom: 16px;
}
.file-upload-area:hover {
  border-color: var(--gold);
  background: rgba(198, 168, 94, 0.04);
}
.file-upload-area .upload-icon {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.file-upload-area .upload-text {
  font-size: 14px;
  color: var(--text-secondary);
}
.file-upload-area .upload-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.file-upload-area input[type="file"] {
  display: none;
}

/* ====== CUSTOM STATUS DROPDOWN ====== */
.custom-select-wrapper {
  position: relative;
}
.custom-select-trigger {
  width: 100%;
  padding: 14px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s;
}
.custom-select-trigger:hover,
.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--gold);
}
.custom-select-trigger .trigger-arrow {
  color: var(--text-muted);
  font-size: 10px;
  transition: transform 0.2s;
}
.custom-select-wrapper.open .trigger-arrow {
  transform: rotate(180deg);
}
.custom-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card-elevated);
  border: 1px solid var(--separator);
  border-radius: var(--radius);
  z-index: 50;
  max-height: 260px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.custom-select-wrapper.open .custom-select-menu {
  display: block;
}
.custom-select-option {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
  font-size: 14px;
}
.custom-select-option:hover {
  background: rgba(198, 168, 94, 0.08);
}
.custom-select-option.selected {
  background: rgba(198, 168, 94, 0.12);
}
.custom-select-wrapper input[type="hidden"] {
  display: none;
}

/* ====== EDIT MODAL SIGNING SECTION ====== */
.signing-divider {
  border: none;
  border-top: 1px solid var(--separator);
  margin: 24px 0 0;
}
.signing-section {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
}
.signing-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.signing-section .file-upload-area {
  padding: 20px 16px;
  border-width: 1.5px;
  border-color: var(--separator);
}
.signing-section .form-group {
  margin-bottom: 12px;
}
.signing-section .checkbox-group {
  margin: 10px 0;
}
.signing-section .btn {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
}

/* ====== TOGGLE GROUP ====== */
.toggle-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  margin-bottom: 12px;
}
.toggle-group .toggle-label {
  font-size: 14px;
  color: var(--text);
}

/* ====== RESPONSIVE SUMMARY 5-col ====== */
@media (max-width: 1400px) {
  .summary-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1200px) {
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ====== PORTFOLIO TABS ====== */
.portfolio-tabs {
  display: flex;
  gap: 4px;
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  width: fit-content;
}
.portfolio-tab-btn {
  padding: 10px 28px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.portfolio-tab-btn.active {
  background: var(--gold);
  color: #000;
}
.portfolio-tab-btn:hover:not(.active) {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

/* ====== SCHEME / INVESTOR CARDS ====== */
.scheme-card {
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.3s;
  animation: fadeSlideUp 0.4s ease both;
}
.scheme-card:hover {
  border-color: rgba(198, 168, 94, 0.2);
}
.scheme-card-header {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  gap: 20px;
  transition: background 0.2s;
}
.scheme-card-header:hover {
  background: rgba(198, 168, 94, 0.03);
}
.scheme-info {
  min-width: 200px;
  flex-shrink: 0;
}
.scheme-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.scheme-stats {
  display: flex;
  gap: 28px;
  flex: 1;
}
.scheme-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.scheme-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.scheme-stat-value {
  font-size: 14px;
  font-weight: 600;
}
.scheme-expand-icon {
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.scheme-card-body {
  border-top: 1px solid var(--separator);
  padding: 20px 24px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.scheme-investors-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.scheme-investors-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.scheme-actions {
  display: flex;
  gap: 8px;
}
.scheme-investor-table {
  width: 100%;
  border-collapse: collapse;
}
.scheme-investor-table thead th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--separator);
}
.scheme-investor-table tbody td {
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.scheme-investor-table tbody tr:last-child td {
  border-bottom: none;
}

/* ====== INVESTOR CHECKBOX LIST ====== */
.investor-check-list {
  margin-top: 8px;
}
.checkbox-investor-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.checkbox-investor-row:last-child {
  border-bottom: none;
}
.checkbox-investor-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}
.investor-check-amount {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 13px;
}
.checkbox-group {
  margin-bottom: 8px;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
}

/* ====== TRANSACTION MODAL TABS ====== */
.tx-modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--separator);
}
.tx-modal-tab {
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.tx-modal-tab.active {
  color: var(--gold);
}
.tx-modal-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}
.tx-modal-tab:hover:not(.active) {
  color: var(--text);
}
.tx-modal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.tx-modal-table thead th {
  text-align: left;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--separator);
}
.tx-modal-table tbody td {
  padding: 8px 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.tx-modal-table tbody tr:last-child td {
  border-bottom: none;
}
.tx-group {
  margin-bottom: 20px;
}
.tx-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--separator);
  margin-bottom: 4px;
}

/* ====== FILTER BAR ====== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-select {
  width: auto !important;
  min-width: 200px;
  padding: 10px 36px 10px 14px !important;
}

/* ====== OPPORTUNITY CARD ACTIONS ====== */
.opp-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--separator);
}
.notify-sent-badge {
  font-size: 11px;
  color: var(--gold);
  background: rgba(198,168,94,0.12);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.btn-xs {
  padding: 4px 10px !important;
  font-size: 11px !important;
  min-height: auto !important;
}

/* ====== NOTIFY INVESTOR GRID ====== */
.notify-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.notify-investor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.notify-investor-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--separator);
}
.notify-investor-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--separator);
  color: var(--text);
}
.notify-investor-table tr:last-child td {
  border-bottom: none;
}
.custom-cb-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}
.custom-cb {
  display: none;
}
.custom-cb-box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--input-border);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--input-bg);
  transition: all 0.2s;
  flex-shrink: 0;
}
.custom-cb:checked + .custom-cb-box {
  background: var(--gold);
  border-color: var(--gold);
}
.custom-cb:checked + .custom-cb-box::after {
  content: '\2713';
  color: #000;
  font-size: 12px;
  font-weight: 700;
}
.custom-cb:disabled + .custom-cb-box {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-icon {
  background: none;
  border: 1px solid var(--input-border);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.invoice-download-btn {
  position: relative;
}

/* Opportunities notify table - checkbox alignment */
.opp-notify-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.opp-notify-table thead th {
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--separator);
  vertical-align: middle;
}
.opp-notify-table thead th:first-child { text-align: left; width: 60%; }
.opp-notify-table thead th:nth-child(2),
.opp-notify-table thead th:nth-child(3) {
  text-align: center;
  width: 20%;
}
.opp-notify-table tbody td {
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
}
.opp-notify-table tbody td:first-child { text-align: left; }
.opp-notify-table tbody td:nth-child(2),
.opp-notify-table tbody td:nth-child(3) {
  text-align: center;
}
.opp-notify-table .opp-cb-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@keyframes invoice-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.loading-spin {
  pointer-events: none;
  opacity: 0.6;
  animation: invoice-spin 0.8s linear infinite;
}
