/* Layout */
.crypto-dashboard {
  max-width: 1100px;
  margin: 30px auto 60px;
  padding: 0 15px;
}

/* Demo banner */
.demo-banner {
  background: #10223a;
  color: #4DA6FF;
  padding: 10px 15px;
  text-align: center;
  font-size: 0.9rem;
}

/* Cards */
.card {
  background: #0b1220;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Summary card */
.summary-card h2 {
  margin-top: 0;
}

.summary-total {
  font-size: 2rem;
  font-weight: 600;
  margin: 8px 0;
}

.summary-note {
  font-size: 0.9rem;
  opacity: 0.8;
}

.summary-split {
  display: flex;
  gap: 30px;
  margin-top: 10px;
}

.summary-split h3 {
  margin-bottom: 4px;
}

/* Actions */
.actions-card h2 {
  margin-top: 0;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* Hub grid */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hub-card h2 {
  margin-top: 0;
}

.hub-subcard {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Contacts */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 4px 0;
}

/* Token table */
.token-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.9rem;
}

.token-table th,
.token-table td {
  padding: 6px 4px;
  text-align: left;
}

.token-table thead tr {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Activity */
.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activity-filters {
  display: flex;
  gap: 6px;
}

.filter-btn {
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}

.filter-btn.active {
  border-color: #4DA6FF;
  color: #4DA6FF;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.activity-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
}

/* Modal */
.cd-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9000;
}

.cd-modal {
  background: #0b1220;
  border-radius: 14px;
  padding: 18px 20px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.cd-modal h2 {
  margin-top: 0;
}

.cd-modal-body {
  margin-top: 10px;
}

.cd-modal-body label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.cd-modal-body input,
.cd-modal-body select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: #050816;
  color: #fff;
  margin-bottom: 10px;
}

.cd-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 800px) {
  .summary-split {
    flex-direction: column;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SecureOneBank — Brightness Fix Patch
   Makes dashboard text crisp and readable
============================================================ */

/* Brighten all text inside the dashboard */
.crypto-dashboard,
.crypto-dashboard * {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Restore accent colors (so they don't get overridden) */
.summary-total,
#cd-cash-balance,
#cd-crypto-balance,
#cd-total-balance {
  color: #ffffff !important;
}

.activity-list li span:first-child {
  color: #ffffff !important;
}

/* Keep muted text muted, but brighter */
.muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Brighten table text */
.token-table td,
.token-table th {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Brighten modal text */
.cd-modal,
.cd-modal * {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Remove any inherited opacity */
.crypto-dashboard,
.crypto-dashboard * {
  opacity: 1 !important;
}
