/* ======================================
   DASHBOARD — HOMEPAGE-CONSISTENT THEME
====================================== */

/* Body override — match homepage */
.dashboard-body {
  background: #030608;
}

/* ======================================
   LAYOUT
====================================== */
.dash-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 100px 24px 72px;
  min-height: 100vh;
}

/* ======================================
   GREETING
====================================== */
.dash-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.dash-greeting-sub {
  font-size: 0.72rem;
  color: #60a5fa;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.dash-greeting h1 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dash-quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ======================================
   STAT CARDS
====================================== */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}

.dash-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 20px 22px;
  transition: border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.dash-stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  opacity: 0;
  transition: opacity 0.25s;
}

.dash-stat-card:hover {
  border-color: rgba(96,165,250,0.3);
}

.dash-stat-card:hover::before {
  opacity: 1;
}

.dsc-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.dsc-label {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
}

.dsc-value {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1;
}

/* ======================================
   SECTION HEADERS (homepage pill style)
====================================== */
.dash-section {
  margin-bottom: 52px;
}

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dash-section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #60a5fa;
  padding: 4px 14px;
  border: 1px solid rgba(96,165,250,0.25);
  border-radius: 30px;
  background: rgba(59,130,246,0.07);
}

.dash-section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
}

.dash-section-link {
  font-size: 0.8rem;
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.dash-section-link:hover { opacity: 0.7; }

.dash-cards-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ======================================
   TWO-COLUMN LAYOUT
====================================== */
.dash-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.dash-layout-main {
  min-width: 0;
}

/* ======================================
   FLOATING ANALYTICS PANEL
====================================== */
.dash-analytics-panel {
  position: sticky;
  top: 90px;
}

.dash-analytics-inner {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(59,130,246,0.14);
  border-radius: 18px;
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
}

.dash-analytics-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, transparent);
}

.dash-analytics-title {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 10px 0 20px;
}

.dash-chart-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 18px;
  position: relative;
}

.dash-chart-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.dash-chart-card canvas {
  max-height: 260px;
}

.dash-chart-no-data {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  color: #4b5563;
  font-size: 0.82rem;
}

/* ======================================
   INVESTMENT CARD
====================================== */
.dinv-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 22px 24px;
  transition: border-color 0.25s;
}

.dinv-card:hover {
  border-color: rgba(96,165,250,0.25);
}

.dinv-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dinv-amount {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1;
}

.dinv-plan {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 4px;
}

.dinv-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.badge-pending          { background: rgba(234,179,8,0.1);   color: #fbbf24; border: 1px solid rgba(234,179,8,0.2); }
.badge-approved         { background: rgba(59,130,246,0.1);  color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.badge-proof_uploaded   { background: rgba(168,85,247,0.1);  color: #c084fc; border: 1px solid rgba(168,85,247,0.2); }
.badge-active           { background: rgba(34,197,94,0.1);   color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.badge-completed        { background: rgba(20,184,166,0.1);  color: #2dd4bf; border: 1px solid rgba(20,184,166,0.2); }
.badge-rejected         { background: rgba(239,68,68,0.1);   color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.badge-denied           { background: rgba(239,68,68,0.1);   color: #f87171; border: 1px solid rgba(239,68,68,0.2); }

/* ── Rejected investment card ── */
.dinv-card-rejected {
  opacity: 0.7;
  border-color: rgba(239, 68, 68, 0.15) !important;
}

.dinv-rejection-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 10px;
}

.dinv-rejection-label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f87171;
}

.dinv-rejection-text {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
}
.badge-processing       { background: rgba(59,130,246,0.1);  color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.badge-awaiting_details { background: rgba(251,146,60,0.1);  color: #fb923c; border: 1px solid rgba(251,146,60,0.2); }

.dinv-progress-wrap {
  margin: 16px 0 12px;
}

.dinv-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 7px;
}

.dinv-progress-track {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}

.dinv-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  transition: width 0.8s ease;
}

.dinv-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.dinv-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dinv-meta-label {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dinv-meta-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #cbd5e1;
}

.dinv-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.bank-deposit-notice {
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
}

.bdn-title {
  font-weight: 700;
  color: #93c5fd;
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.bdn-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 0.85rem;
}

.bdn-label {
  color: #64748b;
}

.bdn-value {
  color: #e2e8f0;
  font-weight: 600;
  text-align: right;
}

.bdn-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.bank-deposit-notice.bdn-missing {
  color: #fbbf24;
  font-size: 0.85rem;
  background: rgba(251,191,36,0.06);
  border-color: rgba(251,191,36,0.25);
}

.upload-proof-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  color: #60a5fa;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.upload-proof-btn:hover {
  background: rgba(59,130,246,0.2);
  border-color: rgba(59,130,246,0.45);
}

.view-bank-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.3);
  color: #fbbf24;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.view-bank-btn:hover {
  background: rgba(251,191,36,0.2);
  border-color: rgba(251,191,36,0.5);
}

/* ======================================
   WITHDRAWAL CARD
====================================== */
.dwd-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transition: border-color 0.25s;
}

.dwd-card:hover {
  border-color: rgba(96,165,250,0.2);
}

.dwd-amount {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #e2e8f0;
}

.dwd-date {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

.dwd-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dwd-note {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ======================================
   REFERRAL BOX
====================================== */
.dash-referral-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.dash-referral-label {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.dash-referral-code {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: 3px;
  margin-bottom: 8px;
  line-height: 1;
}

.dash-referral-note {
  font-size: 0.82rem;
  color: #64748b;
  max-width: 400px;
  line-height: 1.65;
}

.dash-referral-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Referral Earnings Stats ── */
.dash-ref-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.dash-ref-stat {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
}

.dash-ref-stat-label {
  font-size: 0.64rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.dash-ref-stat-value {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #60a5fa;
  line-height: 1;
  margin-bottom: 6px;
}

.dash-ref-stat-sub {
  font-size: 0.68rem;
  color: #334155;
}

/* ── Referred Investor Rows ── */
.dash-ref-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-ref-list-header {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #475569;
  padding: 0 4px;
  margin-bottom: 4px;
}

.dash-ref-row {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-ref-row-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
}

.dash-ref-row-meta {
  font-size: 0.74rem;
  color: #475569;
  margin-top: 2px;
}

.dash-ref-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-ref-row-plan {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(96,165,250,0.08);
  color: #60a5fa;
  border: 1px solid rgba(96,165,250,0.18);
  text-transform: uppercase;
}

.dash-ref-row-amount {
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .dash-ref-stats { grid-template-columns: 1fr 1fr; }
  .dash-ref-stat:last-child { grid-column: span 2; }
}

/* ======================================
   TESTIMONY PROMPT
====================================== */
.dash-testimony-prompt {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.dash-testimony-prompt p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 500px;
  margin: 0;
}

/* ======================================
   EMPTY STATE
====================================== */
.dash-empty {
  text-align: center;
  padding: 32px 20px;
  color: #4b5563;
  font-size: 0.88rem;
  border: 1px dashed rgba(255,255,255,0.06);
  border-radius: 14px;
}

.dash-empty a {
  color: #60a5fa;
}

/* ======================================
   MOBILE
====================================== */
@media (max-width: 900px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }
  .dash-analytics-panel {
    position: static;
    order: -1;
  }
  .dash-analytics-inner {
    padding: 20px 18px;
  }
}

@media (max-width: 640px) {
  .dash-main { padding: 88px 16px 48px; }
  .dash-greeting h1 { font-size: 1.5rem; }
  .dash-quick-actions { width: 100%; }
  .dash-quick-actions .btn,
  .dash-quick-actions .btn-secondary { flex: 1; text-align: center; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dsc-value { font-size: 1.15rem; }
  .dinv-meta { grid-template-columns: repeat(2, 1fr); }
  .dash-referral-box,
  .dash-testimony-prompt { flex-direction: column; align-items: flex-start; }
  .dash-referral-code { font-size: 1.5rem; }
  .dwd-card { flex-direction: column; align-items: flex-start; }
  .dash-ref-stats { grid-template-columns: 1fr 1fr; }
  .dinv-top { flex-direction: column; gap: 8px; }
  .dinv-amount { font-size: 1.3rem; }
}

@media (max-width: 420px) {
  .dash-stats { grid-template-columns: 1fr; }
  .dash-ref-stats { grid-template-columns: 1fr; }
  .dash-ref-stat:last-child { grid-column: span 1; }
  .dinv-meta { grid-template-columns: 1fr; }
  .dsc-label { font-size: 0.62rem; }
  .dash-quick-actions { flex-direction: column; }
  .dash-quick-actions .btn,
  .dash-quick-actions .btn-secondary { width: 100%; }
}

/* ── ROI / Earnings Tracker ── */
.roi-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.roi-summary-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
}
.roi-sc-label { font-size: 0.72rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; }
.roi-sc-value { font-size: 1.2rem; font-weight: 700; color: #f1f5f9; }
.accent-green { color: #86efac !important; }
.accent-amber { color: #fbbf24 !important; }
.accent-purple { color: #c084fc !important; }

.roi-inv-list { display: flex; flex-direction: column; gap: 12px; }
.roi-inv-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px 20px;
}
.roi-inv-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.roi-inv-plan { font-size: 0.78rem; color: #64748b; display: block; margin-bottom: 2px; }
.roi-inv-amount { font-size: 1.05rem; font-weight: 700; color: #f1f5f9; }
.roi-inv-right { text-align: right; }
.roi-inv-roi { display: block; font-size: 0.85rem; font-weight: 700; color: #86efac; }
.roi-inv-maturity { font-size: 0.72rem; color: #475569; }
.roi-progress-wrap { margin-bottom: 10px; }
.roi-progress-label { display: flex; justify-content: space-between; font-size: 0.75rem; color: #64748b; margin-bottom: 6px; }
.roi-progress-track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.roi-progress-fill { height: 100%; background: linear-gradient(90deg, #1d4ed8, #60a5fa); border-radius: 4px; transition: width 0.6s ease; }
.roi-inv-meta { font-size: 0.78rem; color: #64748b; display: flex; gap: 20px; flex-wrap: wrap; }
.roi-inv-meta strong { color: #94a3b8; }

@media (max-width: 640px) {
  .roi-summary-row { grid-template-columns: 1fr 1fr; }
  .roi-summary-row .roi-summary-card:last-child { grid-column: 1/-1; }
}
