/* ============================================================
   Phase 14.3 — Enterprise Trading Terminal Design System
   Design: Neon Glassmorphism Bybit / Binance Futures Theme
   ============================================================ */

/* ── Global Dark Theme Canvas for all CopyTrading modules ── */
.copy-page {
  max-width: 1280px;
  margin: 10px auto 40px;
  padding: 24px 30px 40px;
  background: radial-gradient(circle at top, #181d28 0%, #0b0e11 100%) !important;
  color: #eaecef !important;
  border-radius: 18px;
  border: 1px solid #2b2f36;
  box-shadow: 0 25px 75px rgba(0,0,0,0.5);
  font-family: 'Inter', -apple-system, sans-serif;
  box-sizing: border-box;
}

/* ── CSS Neon Variables (Scoped inside copy-page) ─────────── */
.copy-page {
  --surface:       rgba(24, 26, 32, 0.75);
  --surface-2:     rgba(30, 35, 41, 0.9);
  --surface-3:     #2b2f36;
  --success:       #0ecb81; /* Binance Neon Green */
  --danger:        #f6465d;  /* Binance Neon Red */
  --warning:       #f0b90b;  /* Binance Neon Yellow */
  --accent:        #3b82f6;  /* Neon Blue */
  --glass:         rgba(24, 26, 32, 0.55);
  --shadow-soft:   0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --shadow-large:  0 16px 48px 0 rgba(0, 0, 0, 0.6);
  --line:          rgba(255, 255, 255, 0.08);
  --text:          #eaecef;
  --text-muted:    #848e9c;
}

/* ── Hero Header Area ─────────────────────────────────────── */
.copy-page .copy-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line) !important;
}
.copy-page .copy-hero-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}
.copy-page .copy-hero-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Premium Glassmorphic Cards ───────────────────────────── */
.copy-page .copy-table-card,
.copy-page .copy-kpi-card,
.copy-page .copy-info-card {
  background: var(--surface) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-soft) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}
.copy-page .copy-table-card:hover,
.copy-page .copy-kpi-card:hover,
.copy-page .copy-info-card:hover {
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: var(--shadow-large) !important;
  transform: translateY(-2px);
}

/* ── Head of Cards ───────────────────────────────────────── */
.copy-page .copy-table-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line) !important;
}
.copy-page .copy-table-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}
.copy-page .copy-table-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── 6 Premium KPI Cards ──────────────────────────────────── */
.copy-page .copy-kpi-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.copy-page .copy-kpi-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--line);
}
.copy-page .copy-kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.copy-page .copy-kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(255,255,255,0.05);
}
.copy-page .copy-kpi-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Glassmorphic Inputs & Forms ──────────────────────────── */
.copy-page .copy-select,
.copy-page .copy-search-input,
.copy-page .copy-form-input,
.copy-page .copy-form-select {
  height: 40px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}
.copy-page .copy-select:focus,
.copy-page .copy-search-input:focus,
.copy-page .copy-form-input:focus,
.copy-page .copy-form-select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
  background: rgba(0, 0, 0, 0.45) !important;
}
.copy-page .copy-form-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Premium Buttons ──────────────────────────────────────── */
.copy-page .copy-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
  text-decoration: none;
}
.copy-page .copy-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}
.copy-page .copy-action-btn.primary {
  background: var(--accent) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.copy-page .copy-action-btn.success {
  background: var(--success) !important;
  color: #0b0e11 !important;
  box-shadow: 0 4px 12px rgba(14, 203, 129, 0.3);
}
.copy-page .copy-action-btn.danger {
  background: var(--danger) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(246, 70, 93, 0.3);
}
.copy-page .copy-action-btn.ghost {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.copy-page .copy-action-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ── SaaS Table Styling ───────────────────────────────────── */
.copy-page .copy-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.copy-page .copy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--text);
}
.copy-page .copy-table thead tr {
  background: rgba(0, 0, 0, 0.25);
}
.copy-page .copy-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.copy-page .copy-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.copy-page .copy-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02) !important;
}
.copy-page .copy-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Neon Status Badges ───────────────────────────────────── */
.copy-page .copy-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.copy-page .copy-status-badge::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.copy-page .badge-active,
.copy-page .badge-success,
.copy-page .badge-done {
  background: rgba(14, 203, 129, 0.12) !important;
  color: var(--success) !important;
  border: 1px solid rgba(14, 203, 129, 0.2);
}
.copy-page .badge-suspended,
.copy-page .badge-failed,
.copy-page .badge-fail {
  background: rgba(246, 70, 93, 0.12) !important;
  color: var(--danger) !important;
  border: 1px solid rgba(246, 70, 93, 0.2);
}
.copy-page .badge-pending,
.copy-page .badge-new,
.copy-page .badge-processing {
  background: rgba(240, 185, 11, 0.12) !important;
  color: var(--warning) !important;
  border: 1px solid rgba(240, 185, 11, 0.2);
}
.copy-page .badge-paused {
  background: rgba(59, 130, 246, 0.12) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.copy-page .badge-stopped,
.copy-page .badge-skipped,
.copy-page .badge-secondary {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-muted) !important;
  border: 1px solid var(--line);
}

/* ── Interactive Market Heatmap ────────────────────────────── */
.copy-page .copy-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.copy-page .copy-heatmap-box {
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
}
.copy-page .copy-heatmap-box:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.copy-page .copy-heatmap-box.green {
  background: linear-gradient(135deg, rgba(14, 203, 129, 0.18), rgba(14, 203, 129, 0.04));
  border-color: rgba(14, 203, 129, 0.15);
  color: var(--success);
}
.copy-page .copy-heatmap-box.red {
  background: linear-gradient(135deg, rgba(246, 70, 93, 0.18), rgba(246, 70, 93, 0.04));
  border-color: rgba(246, 70, 93, 0.15);
  color: var(--danger);
}
.copy-page .copy-heatmap-coin {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}
.copy-page .copy-heatmap-pnl {
  font-size: 13px;
  font-weight: 700;
}
.copy-page .copy-heatmap-vol {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* ── Chronological Activity Timeline ──────────────────────── */
.copy-page .copy-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 20px;
  margin-top: 12px;
}
.copy-page .copy-timeline::before {
  content: '';
  position: absolute;
  left: 4px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.copy-page .copy-timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.copy-page .copy-timeline-dot {
  position: absolute;
  left: -20px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  border: 2px solid var(--surface-2);
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}
.copy-page .copy-timeline-item.success .copy-timeline-dot { background: var(--success); }
.copy-page .copy-timeline-item.danger .copy-timeline-dot { background: var(--danger); }
.copy-page .copy-timeline-item.warning .copy-timeline-dot { background: var(--warning); }
.copy-page .copy-timeline-time {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}
.copy-page .copy-timeline-desc {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* ── 3Commas Enterprise Card Grid (Leaders & Subscriptions) ── */
.copy-page .leaders-card-grid tbody,
.copy-page .subs-card-grid tbody {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)) !important;
  gap: 20px !important;
  padding: 24px !important;
}
.copy-page .leaders-card-grid tbody tr,
.copy-page .subs-card-grid tbody tr {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  background: var(--surface) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: var(--shadow-soft) !important;
  transition: all 0.25s ease;
}
.copy-page .leaders-card-grid tbody tr:hover,
.copy-page .subs-card-grid tbody tr:hover {
  border-color: rgba(255,255,255,0.15) !important;
  box-shadow: var(--shadow-large) !important;
  transform: translateY(-2px) !important;
}

/* Leaders card content styles */
.copy-page .leaders-card-grid tbody td,
.copy-page .subs-card-grid tbody td {
  display: block !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}
.copy-page .leaders-card-grid tbody td:nth-child(1) {
  font-size: 11px !important;
  color: var(--text-muted) !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
  font-weight: 700 !important;
}
.copy-page .leaders-card-grid tbody td:nth-child(1)::before { content: "LEADER ID: #"; }
.copy-page .leaders-card-grid tbody td:nth-child(2) {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.copy-page .leaders-card-grid tbody td:nth-child(2)::before {
  content: "👤";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  font-size: 14px;
}
.copy-page .leaders-card-grid tbody td:nth-child(3) { margin-bottom: 12px !important; }
.copy-page .leaders-card-grid tbody td:nth-child(4) {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--success) !important;
  margin-bottom: 10px !important;
}
.copy-page .leaders-card-grid tbody td:nth-child(4)::before {
  content: "Profit Share:  " !important;
  color: var(--text-muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}
.copy-page .leaders-card-grid tbody td:nth-child(4)::after {
  content: "% Share" !important;
  font-size: 12px !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
}
.copy-page .leaders-card-grid tbody td:nth-child(5) {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  margin-bottom: 16px !important;
  background: rgba(0,0,0,0.2) !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  border: 1px solid var(--line) !important;
}
.copy-page .leaders-card-grid tbody td:nth-child(5)::before {
  content: "Active Markets: " !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}
.copy-page .leaders-card-grid tbody td:nth-child(6) {
  display: flex !important;
  gap: 8px !important;
  border-top: 1px solid var(--line) !important;
  padding-top: 12px !important;
}
.copy-page .leaders-card-grid tbody td:nth-child(6) button {
  flex: 1 !important;
  height: 34px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  border: 1px solid transparent !important;
  transition: all 0.15s !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.copy-page .leaders-card-grid tbody td:nth-child(6) button:first-child {
  background: var(--accent) !important;
  color: #fff !important;
}
.copy-page .leaders-card-grid tbody td:nth-child(6) button:last-child {
  background: transparent !important;
  border-color: var(--line) !important;
  color: var(--text-muted) !important;
}
.copy-page .leaders-card-grid tbody td:nth-child(6) button:last-child:hover {
  border-color: var(--danger) !important;
  color: var(--danger) !important;
  background: rgba(246, 70, 93, 0.08) !important;
}

/* Subscriptions card content styles */
.copy-page .subs-card-grid tbody td:nth-child(1) {
  font-size: 11px !important;
  color: var(--text-muted) !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
  font-weight: 700 !important;
}
.copy-page .subs-card-grid tbody td:nth-child(1)::before { content: "SUBSCRIPTION ID: #"; }
.copy-page .subs-card-grid tbody td:nth-child(2) {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 4px !important;
}
.copy-page .subs-card-grid tbody td:nth-child(2)::before {
  content: "Follower: " !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
}
.copy-page .subs-card-grid tbody td:nth-child(3) {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--accent) !important;
  margin-bottom: 12px !important;
}
.copy-page .subs-card-grid tbody td:nth-child(3)::before {
  content: "Leader Account: " !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
}
.copy-page .subs-card-grid tbody td:nth-child(4) { margin-bottom: 12px !important; }
.copy-page .subs-card-grid tbody td:nth-child(5) {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin-bottom: 4px !important;
}
.copy-page .subs-card-grid tbody td:nth-child(5)::before {
  content: "Mode Type: " !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
}
.copy-page .subs-card-grid tbody td:nth-child(6) {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--success) !important;
  margin-bottom: 12px !important;
}
.copy-page .subs-card-grid tbody td:nth-child(6)::before {
  content: "Allocated: " !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
}
.copy-page .subs-card-grid tbody td:nth-child(7),
.copy-page .subs-card-grid tbody td:nth-child(8) {
  font-size: 11px !important;
  color: var(--text-muted) !important;
  margin-bottom: 6px !important;
  background: rgba(0,0,0,0.2) !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  display: inline-block !important;
  margin-right: 8px !important;
  border: 1px solid var(--line) !important;
}
.copy-page .subs-card-grid tbody td:nth-child(7)::before { content: "Daily Loss: " !important; }
.copy-page .subs-card-grid tbody td:nth-child(8)::before { content: "Trade Limit: " !important; }
.copy-page .subs-card-grid tbody td:nth-child(9) {
  display: flex !important;
  gap: 6px !important;
  border-top: 1px solid var(--line) !important;
  padding-top: 12px !important;
  margin-top: 12px !important;
}
.copy-page .subs-card-grid tbody td:nth-child(9) button {
  flex: 1 !important;
  height: 32px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  border: 1px solid transparent !important;
  transition: all 0.15s !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.copy-page .subs-card-grid tbody td:nth-child(9) button:nth-child(1) {
  background: var(--accent) !important;
  color: #fff !important;
}
.copy-page .subs-card-grid tbody td:nth-child(9) button:nth-child(2) {
  background: var(--warning) !important;
  color: #0b0e11 !important;
}
.copy-page .subs-card-grid tbody td:nth-child(9) button:nth-child(3) {
  background: transparent !important;
  border-color: var(--line) !important;
  color: var(--text-muted) !important;
}
.copy-page .subs-card-grid tbody td:nth-child(9) button:nth-child(3):hover {
  border-color: var(--danger) !important;
  color: var(--danger) !important;
  background: rgba(246, 70, 93, 0.08) !important;
}

/* ── Jobs CLI Terminal ────────────────────────────────────── */
.copy-page .jobs-terminal-table {
  background: #020617 !important;
  font-family: 'JetBrains Mono', 'Courier New', monospace !important;
  border-radius: 12px;
  overflow: hidden;
}
.copy-page .jobs-terminal-table thead th {
  background: #0f172a !important;
  color: #38bdf8 !important;
  border-bottom: 2px solid #1e293b !important;
  font-size: 11px !important;
  font-weight: 700;
}
.copy-page .jobs-terminal-table tbody tr {
  border-bottom: 1px solid #0f172a !important;
}
.copy-page .jobs-terminal-table tbody tr:hover {
  background: #0f172a !important;
}
.copy-page .jobs-terminal-table tbody td {
  color: #34d399 !important; /* Cyberpunk Green text */
  font-size: 12px !important;
}
.copy-page .jobs-terminal-table tbody td.muted {
  color: #64748b !important;
}
.copy-page .jobs-terminal-table tbody td button {
  background: #1e293b !important;
  color: #38bdf8 !important;
  border: 1px solid #334155 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  font-family: inherit;
  font-size: 10px !important;
  cursor: pointer;
  transition: all 0.15s;
}
.copy-page .jobs-terminal-table tbody td button:hover {
  background: #38bdf8 !important;
  color: #020617 !important;
}

/* ── Empty State ──────────────────────────────────────────── */
.copy-page .copy-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  color: var(--text-muted);
  gap: 8px;
}
.copy-page .copy-empty-state .empty-icon { font-size: 36px; opacity: 0.5; }
.copy-page .copy-empty-state .empty-text { font-size: 14px; font-weight: 700; color: #fff; }
.copy-page .copy-empty-state .empty-sub  { font-size: 12px; opacity: 0.7; }

/* ── Form Layout ──────────────────────────────────────────── */
.copy-page .copy-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px;
}
.copy-page .copy-form-group { display: flex; flex-direction: column; gap: 6px; }
.copy-page .copy-form-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; }
.copy-page .copy-form-hint { font-size: 11px; color: var(--text-muted); }
.copy-page .copy-form-footer { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }

/* ── Toolbar Filter Row ────────────────────────────────────── */
.copy-page .copy-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--line);
}
.copy-page .copy-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-page .copy-filter-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.copy-page .copy-stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
}
.copy-page .copy-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.copy-page .copy-stat-pill b { color: #ffffff; font-weight: 800; }

/* ── Desktop Layout Grids ─────────────────────────────────── */
.copy-page .copy-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: 16px;
  margin-bottom: 24px;
}
.copy-page .copy-two-col-grid {
  display: grid !important;
  gap: 20px;
  margin-bottom: 24px;
}
.copy-page .copy-alloc-grid {
  display: grid !important;
  grid-template-columns: 1.2fr 1fr !important;
  gap: 24px;
  margin-bottom: 24px;
}

/* ── Responsive Rules ──────────────────────────────────────── */
@media (max-width: 768px) {
  .copy-page { padding: 16px 14px 24px !important; margin: 10px auto !important; }
  .copy-page .copy-kpi-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .copy-page .copy-hero { flex-direction: column !important; align-items: flex-start !important; }
  .copy-page .copy-toolbar { flex-direction: column !important; align-items: flex-start !important; }
  .copy-page .copy-table th, .copy-page .copy-table td { padding: 8px 10px !important; font-size: 12px !important; }
  .copy-page .copy-two-col-grid, .copy-page .copy-alloc-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .copy-page .copy-kpi-grid { grid-template-columns: 1fr !important; }
  .copy-page .copy-kpi-value { font-size: 24px !important; }
}

/* ── Dynamic Portfolio SVG Pie Chart Responsive Wrap ───────── */
.copy-page .copy-pie-chart-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 15px 0;
  height: 180px;
}
@media (max-width: 550px) {
  .copy-page .copy-pie-chart-wrap {
    flex-direction: column !important;
    height: auto !important;
    gap: 12px !important;
  }
  .copy-page .copy-pie-chart-wrap svg {
    width: 110px !important;
    height: 110px !important;
  }
  .copy-page .copy-pie-chart-wrap div {
    width: 100% !important;
    max-height: none !important;
    padding-left: 0 !important;
  }
}
