/* ============================================================
   SecureOneBank — REALITY Crypto Dashboard Styles
   Button colors restored to original global styles.css
============================================================ */

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

/* ------------------------------------------------------------
   Reality Banner
------------------------------------------------------------ */
.real-banner {
  background: #10223a;
  color: #4DA6FF;
  padding: 12px 18px;
  text-align: center;
  font-size: 0.95rem;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

/* ------------------------------------------------------------
   Cards
------------------------------------------------------------ */
.card {
  background: #0b1220;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.55);
}

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

.summary-total {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 8px 0;
  color: #ffffff !important;
}

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

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

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

/* ------------------------------------------------------------
   Actions (NO BUTTON OVERRIDES HERE)
------------------------------------------------------------ */
.actions-card h2 {
  margin-top: 0;
}

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

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

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

.hub-subcard {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

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

.contact-list li {
  padding: 5px 0;
  font-size: 0.9rem;
}

/* ------------------------------------------------------------
   Token Table
------------------------------------------------------------ */
.token-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  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.12);
}

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

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

.filter-btn {
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 5px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

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

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

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

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

.cd-modal {
  background: #0b1220;
  border-radius: 14px;
  padding: 20px 22px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.65);
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

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

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

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

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

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

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

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

/* ------------------------------------------------------------
   Brightness Fix Patch
------------------------------------------------------------ */
.crypto-dashboard,
.crypto-dashboard * {
  color: rgba(255, 255, 255, 0.95) !important;
}

.summary-total,
#cd-cash-balance,
#cd-crypto-balance,
#cd-total-balance {
  color: #ffffff !important;
}

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

.muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

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

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

/* ------------------------------------------------------------
   Reality Tutorial Visibility Fix
------------------------------------------------------------ */
#crypto-tutorial-overlay,
#crypto-tutorial-overlay *,
#crypto-tutorial-ring,
#crypto-tutorial-next-btn,
#crypto-tutorial-breadcrumb {
  opacity: 1 !important;
  color: #fff !important;
  z-index: 999999 !important;
}

/* ------------------------------------------------------------
   Reality Tutorial Ring Enhancements
------------------------------------------------------------ */
#crypto-tutorial-ring {
  box-shadow: 0 0 12px rgba(77,166,255,0.75);
  transition: box-shadow 0.2s ease;
}

#crypto-tutorial-ring:hover {
  box-shadow: 0 0 18px rgba(77,166,255,0.95);
}

/* ============================================================
   SecureOneBank — REALITY Dashboard UI Upgrade
   New class names for rdRender() system
============================================================ */

/* ------------------------------------------------------------
   Cash Balance
------------------------------------------------------------ */
#rd-cash-balance {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
}

/* ------------------------------------------------------------
   Portfolio List
------------------------------------------------------------ */
#rd-portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.rd-portfolio-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0b1220;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rd-portfolio-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.rd-portfolio-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rd-token-icon {
  width: 28px;
  height: 28px;
}

.rd-token-symbol {
  font-size: 1rem;
  font-weight: 600;
}

.rd-portfolio-right {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.rd-token-balance {
  font-size: 0.95rem;
}

.rd-token-usd {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ------------------------------------------------------------
   Portfolio Total
------------------------------------------------------------ */
#rd-portfolio-total {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 12px;
  color: #ffffff;
}

/* ------------------------------------------------------------
   Activity List
------------------------------------------------------------ */
#rd-activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.rd-activity-row {
  display: flex;
  justify-content: space-between;
  background: #0b1220;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.rd-activity-left {
  display: flex;
  flex-direction: column;
}

.rd-activity-type {
  font-size: 0.85rem;
  opacity: 0.75;
}

.rd-activity-label {
  font-size: 1rem;
  font-weight: 600;
}

.rd-activity-right {
  text-align: right;
}

.rd-activity-amount {
  font-size: 1rem;
  font-weight: 600;
}

.rd-activity-ts {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ------------------------------------------------------------
   Contacts List
------------------------------------------------------------ */
#rd-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.rd-contact-row {
  display: flex;
  justify-content: space-between;
  background: #0b1220;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.rd-contact-handle {
  font-weight: 600;
}

.rd-contact-name {
  opacity: 0.85;
}
