/* Dashboard specific styles */
:root {
  --bg: #07131d;
  --panel: rgba(16, 35, 53, 0.9);
  --primary: #1ee0b6;
  --text: #ecfaff;
  --muted: #a6b9c8;
  --border: rgba(134, 169, 255, 0.3);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top, #102335 0%, #07131d 58%);
  color: var(--text);
  overflow-x: hidden;
}
img, svg, video, canvas, iframe { max-width: 100%; }

.app-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 8, 18, 0.75);
  backdrop-filter: blur(6px) saturate(1.05);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 9999;
  padding: 20px;
}

.app-modal-backdrop.is-open { opacity: 1; visibility: visible; }

.app-modal {
  width: min(560px, calc(100vw - 40px));
  background: linear-gradient(180deg, rgba(12,20,26,0.98), rgba(6,12,18,0.98));
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(2,8,20,0.6), 0 6px 18px rgba(2,8,20,0.35);
  overflow: hidden;
  transform: translateY(6px) scale(0.99);
  transition: transform 220ms cubic-bezier(.2,.9,.3,1), opacity 200ms ease;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.app-modal-header { display:flex; align-items:center; justify-content:space-between; padding:18px 20px 12px; border-bottom:1px solid rgba(148,163,184,0.12); }
.app-modal-header h3 { margin:0; font-size:1.15rem; color:#edf6ff; }
.app-modal-close { border:none; background:transparent; color:#cbd5e1; font-size:1.6rem; line-height:1; cursor:pointer; }
.app-modal-body { padding:18px 20px 8px; color:#dfeaf3; overflow:auto; flex:1 1 auto; }
.app-modal-wallet-address {
  background: rgba(10, 18, 26, 0.9);
  border: 1px solid rgba(30,224,182,0.18);
  border-radius: 10px;
  padding: 14px 16px;
  color: #ecfaff;
  line-height: 1.6;
  white-space: normal;
  overflow: hidden;
  word-break: break-word;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.88rem;
}
.app-modal-wallet-address.exchange-rate-modal-message {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  white-space: normal !important;
  overflow: visible !important; /* allow children to control scrolling */
  word-break: normal !important;
}
.app-modal-wallet-address.exchange-rate-modal-message .exchange-rate-modal-shell,
.app-modal-wallet-address.exchange-rate-modal-message .exchange-rate-marquee-wrap,
.app-modal-wallet-address.exchange-rate-modal-message .exchange-rate-marquee-track,
.app-modal-wallet-address.exchange-rate-modal-message .exchange-rate-marquee-chip {
  white-space: nowrap !important;
  overflow: hidden !important;
  word-break: normal !important;
  flex-wrap: nowrap !important;
}
.app-modal-wallet-address.exchange-rate-modal-message .exchange-rate-modal-shell {
  display: block !important;
  width: min(100%, 520px) !important;
  max-width: 100% !important;
}
.app-modal-wallet-address.exchange-rate-modal-message .exchange-rate-marquee-wrap {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-y: auto !important; /* allow manual vertical scroll inside modal */
  overflow-x: hidden !important;
  max-height: 60vh !important;
  padding: 8px 12px !important;
}
.app-modal-wallet-address.exchange-rate-modal-message .exchange-rate-marquee-track {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  animation: none !important;
  padding: 0 !important;
}
.app-modal-wallet-address.exchange-rate-modal-message .exchange-rate-marquee-chip {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  white-space: normal !important;
  display: flex !important;
  width: 100% !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 10px 12px !important;
}
.app-modal-actions { display:flex; justify-content:flex-end; gap:10px; padding:18px 20px 20px; }
.app-modal-actions.single { justify-content:center; }
.app-modal-btn { border:none; border-radius:10px; padding:11px 18px; font-weight:700; cursor:pointer; }
.app-modal-btn-primary { background: linear-gradient(90deg, #25d0a3, #57c7ff); color:#04151d; }
.app-modal-btn-secondary { background: rgba(148,163,184,0.08); color:#edf6ff; border:1px solid rgba(148,163,184,0.16); }
body.modal-open, html.modal-open { overflow: hidden !important; height: 100% !important; }
@keyframes modalEntrance { from { transform: translateY(8px) scale(0.985); opacity:0 } to { transform: translateY(0) scale(1); opacity:1 } }
.app-modal-backdrop.is-open .app-modal { animation: modalEntrance 220ms cubic-bezier(.2,.9,.3,1) both; }

.page-shell { padding: 28px; max-width: 1200px; margin: 0 auto; }
.page-header {
  display:flex; justify-content:space-between; align-items:center; margin-bottom:18px;
  padding: 18px 22px; background: rgba(9,18,28,0.8); border-radius: 18px; border: 1px solid var(--border);
  gap: 18px;
  position: relative;
}
.brand-box { display:flex; align-items:center; gap:12px; }
.brand-logo { width:48px; height:48px; border-radius:14px; object-fit:cover; box-shadow: 0 8px 18px rgba(0,0,0,0.2), 0 0 18px rgba(30,224,182,0.18); }
.brand-box h1 { margin: 0; }
.brand-box small { color: rgba(236,250,255,0.75); }
.page-header h1 { margin: 0; }
.nav-toggle {
  display:none;
  width:44px; height:44px;
  border:1px solid rgba(255,255,255,0.10);
  border-radius:10px;
  background: rgba(255,255,255,0.02);
  padding:10px 8px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
}
.private-message-btn { background: transparent; border: none; cursor: pointer; }
.private-message-icon { width: 36px; height: 36px; border-radius: 50%; display:block; filter: brightness(1.05) saturate(1.2); transition: transform 200ms ease, box-shadow 200ms ease; }
.private-message-label { font-size: 11px; color: #ffd89b; font-weight:700; text-transform:uppercase; }
.private-message-btn.has-unread .private-message-icon { box-shadow: 0 0 12px rgba(255,185,52,0.9); animation: pmPulse 1600ms infinite; transform: translateY(-1px); }
@keyframes pmPulse { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }
.nav-toggle span {
  display:block;
  width:20px;
  height:2px;
  background: var(--text);
  border-radius:99px;
  transition: all 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.dashboard-nav {
  display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px;
}
.dashboard-nav a {
  color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); transition: all 0.2s ease;
}
.dashboard-nav a:hover {
  background: rgba(30,224,182,0.08); border-color: rgba(30,224,182,0.2); transform: translateY(-1px);
}
.dashboard-nav a.accent-link {
  background: linear-gradient(135deg, rgba(30,224,182,0.18), rgba(63,93,255,0.15));
  border-color: rgba(30,224,182,0.28);
  color: #dffef6;
}
.page-body {
  background: rgba(255,255,255,0.02); padding:18px; border-radius:18px; border: 1px solid var(--border);
  overflow: visible;
}

.exchange-rate-summary {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

/* Allow the summary to shrink inside flex containers and avoid forcing
   parent layouts wider than the viewport. This prevents the ticker from
   breaking responsiveness when used inside grid/flex items. */
.exchange-rate-summary {
  min-width: 0;
}

/* Exchange-rate marquee styles for inline dashboard ticker */
.exchange-rate-summary .exchange-rate-marquee-wrap {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  padding: 8px 0;
  margin-top: 6px;
  background: linear-gradient(135deg, rgba(8, 14, 22, 0.85), rgba(18, 26, 36, 0.75));
  border: 1px solid rgba(148, 163, 184, 0.06);
}
.exchange-rate-summary .exchange-rate-marquee-track {
  /* absolutely position the moving track so it doesn't force the
     parent/container to expand. This keeps surrounding layout responsive. */
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: inline-flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  min-width: 0;
  animation: exchangeRateMarqueeSlow 36s linear infinite;
  padding: 0 12px;
}
.exchange-rate-summary .exchange-rate-marquee-track > * {
  flex: 0 0 auto;
}
.exchange-rate-summary .exchange-rate-marquee-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(148,163,184,0.08), rgba(96,165,250,0.06));
  color: #e6eef8;
  font-size: 12px;
  box-shadow: 0 6px 14px rgba(2,8,18,0.22);
}
.exchange-rate-summary .exchange-rate-marquee-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:50%;background:#2ea7ff;color:#fff;font-size:10px;font-weight:700}
@keyframes exchangeRateMarqueeSlow {
  0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-50%,0,0); }
}

/* Responsive tweaks: allow touch scrolling on small screens and
   disable continuous animation where it harms layout or accessibility. */
.exchange-rate-summary .exchange-rate-marquee-wrap {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 920px) {
  /* On narrower viewports prefer horizontal scroll instead of a looping animation */
  .exchange-rate-summary .exchange-rate-marquee-track {
    animation: none;
    gap: 10px;
    padding-left: 8px;
  }
  .exchange-rate-summary .exchange-rate-marquee-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 6px 6px;
  }
}

@media (max-width: 520px) {
  /* Reduce chip padding & font-size on very small screens */
  .exchange-rate-summary .exchange-rate-marquee-chip {
    padding: 6px 8px;
    font-size: 11px;
  }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .exchange-rate-summary .exchange-rate-marquee-track {
    animation: none !important;
    transform: none !important;
  }
}

/* Make sure modal-specific overrides continue to work when same classes are used */
.app-modal-wallet-address.exchange-rate-modal-message { padding:0 !important; background:transparent !important; }

.list-box, .user-card, .stat-card, .item-row, .plan-card {
  background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 12px; padding: 14px;
}

#dashboardContent { display:grid; gap:16px; }

.stat-card strong { display:block; font-size: 1.3rem; margin-top:4px; }
.tag { display:inline-block; margin:4px 6px 0 0; padding:6px 8px; background: rgba(30,224,182,0.1); border-radius:999px; color: var(--primary); }

.section-label {
  margin: 18px 0 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30,224,182,0.14), rgba(78,148,255,0.16));
  border: 1px solid rgba(30,224,182,0.28);
  box-shadow: 0 10px 22px rgba(30,224,182,0.10);
  color: #f6fffd;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  display: inline-block;
  width: auto;
}

/* Small card layout for user stats and codes */
.user-header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; }
.user-profile { flex: 1 1 260px; min-width: 180px; }
.user-identity-row { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.user-identity-main { display:flex; flex-direction:column; gap:2px; margin-top:2px; }
.user-name {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}
.user-email {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.user-wallet-inline {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  min-width: 0;
  max-width: 620px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px;
}
.wallet-field-label-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.user-wallet-inline label {
  color: var(--muted);
  white-space:nowrap;
  font-weight:700;
}
.wallet-field-row {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.local-currency-converter {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(97,179,255,0.28);
  border-radius: 12px;
  background: rgba(97,179,255,0.06);
}

.converter-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text);
}

.converter-head-row span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.converter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.converter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.converter-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.converter-field input,
.converter-field select {
  width: 100%;
  padding: 10px 12px;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8,17,25,0.9);
  color: var(--text);
}

.converter-results-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(30,224,182,0.24);
  background: rgba(30,224,182,0.06);
}

.converter-result-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.converter-result-value {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--text);
}

.converter-results-box small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.user-wallet-inline input,
.user-wallet-inline select {
  min-width: 220px;
  flex: 1 1 220px;
  padding:8px 10px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(8,17,25,0.9);
  color: var(--text);
  min-height: 42px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.user-wallet-inline select option {
  background: #0d1c2b;
  color: var(--text);
}
.user-wallet-inline select,
.wallet-select {
  background-image: linear-gradient(45deg, transparent 50%, rgba(236,250,255,0.9) 50%), linear-gradient(135deg, rgba(236,250,255,0.9) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.user-wallet-inline select:focus,
.user-wallet-inline input:focus {
  outline: none;
  border-color: rgba(30,224,182,0.6);
  box-shadow: 0 0 0 3px rgba(30,224,182,0.15);
}
.ghost-btn {
  border:1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  font-weight:600;
}
.primary-btn,
.secondary-btn {
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}
.compact-btn {
  width: auto;
  min-width: 120px;
}
.primary-btn {
  background: linear-gradient(135deg, var(--primary), rgba(30,224,182,0.78));
  color: #031a1a;
  box-shadow: 0 10px 24px rgba(30,224,182,0.2);
  border: none;
}
.secondary-btn {
  background: rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  color: var(--text);
}
.wallet-saved-state { display:none; margin-top:6px; color: #8ef7d1; font-size: 0.8rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(30,224,182,0.12); border: 1px solid rgba(30,224,182,0.28); width: fit-content; }
.wallet-saved-state.visible { display:inline-block; }
.user-meta { margin-top:8px; }
.user-stats { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.stat-card.small { min-width: 120px; padding:10px 12px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius:10px; text-align:center; }
.stat-card.small small { display:block; color: var(--muted); font-size: 0.85rem; }

.profit-overview {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(30,224,182,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(30,224,182,0.18);
}
.profit-overview-header {
  display:flex; align-items:center; justify-content:space-between; gap:10px; font-size: 0.9rem; color: var(--muted);
}
.profit-overview-header strong {
  color: var(--text); font-size: 1.05rem;
}
.upgrade-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(30,224,182,0.08);
  border: 1px solid rgba(30,224,182,0.22);
  color: var(--primary);
  font-size: 0.82rem;
}
.profit-progress {
  position: relative; margin-top: 12px; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.05);
}
.profit-progress span {
  display:block; height:100%; border-radius:inherit; background: linear-gradient(90deg, var(--primary), #60a5fa);
}
.profit-metrics {
  display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:10px; margin-top: 12px;
}
.profit-metrics div {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); border-radius: 10px; padding: 10px 12px;
}
.profit-metrics small { display:block; color: var(--muted); margin-bottom: 4px; }
.profit-metrics strong { display:block; font-size: 1rem; }
.profit-date-row {
  display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:10px; margin-top: 12px;
}
.profit-date-row div {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); border-radius: 10px; padding: 10px 12px;
}
.profit-date-row small { display:block; color: var(--muted); margin-bottom: 4px; }
.profit-date-row strong { display:block; font-size: 1rem; }
.investment-time-counter {
  display: inline-block;
  background: #000000;
  color: #34d399;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  font-weight: 700;
}
.profit-policy-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.dashboard-quick-overview {
  width: 100%;
  padding: 18px 18px 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(10, 20, 29, 0.92), rgba(12, 24, 36, 0.95));
  box-shadow: 0 18px 38px rgba(2, 8, 15, 0.2);
}

.utility-tabs {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin: 12px 0 10px;
}

.utility-tab {
  border:1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius:10px;
  padding: 9px 14px;
  font-weight:700;
  cursor:pointer;
  transition: all 0.18s ease;
}

.utility-tab.is-active {
  background: linear-gradient(135deg, rgba(30,224,182,0.18), rgba(78,148,255,0.18));
  border-color: rgba(30,224,182,0.38);
  box-shadow: 0 8px 16px rgba(30,224,182,0.12);
}

.utility-overview-header {
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.dashboard-quick-overview .utility-tab-panels {
  margin-top: 8px;
}

.dashboard-quick-overview .timeline-panel {
  border-radius: 14px;
  border-color: rgba(30, 224, 182, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.utility-timeline-summary {
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:8px;
  margin: 0 0 14px;
}

.utility-timeline-step {
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:10px;
  background: rgba(255,255,255,0.02);
  border:1px solid rgba(148,163,184,0.12);
  color: var(--muted);
  font-size:12px;
  text-align:left;
  cursor:pointer;
  transition: all 0.18s ease;
}

.utility-timeline-step span {
  width:20px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background: rgba(148,163,184,0.12);
  color: var(--text);
  font-weight:700;
}

.utility-timeline-step.is-current {
  background: rgba(30,224,182,0.08);
  border-color: rgba(30,224,182,0.28);
  color: var(--text);
}

.utility-timeline-step.is-current span {
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: #04151d;
}

.utility-tab-panels {
  display:block;
}

.utility-panel {
  display:none;
}

.utility-panel.is-active {
  display:block;
}

.timeline-panel {
  border:1px solid rgba(148, 163, 184, 0.18);
  border-radius:12px;
  padding:16px;
  background: rgba(255, 255, 255, 0.02);
}

.timeline-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.user-stats-panel {
  width: 100%;
  padding: 18px 18px 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(10, 20, 29, 0.88), rgba(12, 24, 36, 0.95));
  box-shadow: 0 18px 38px rgba(2, 8, 15, 0.18);
}

.stats-section-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 12px 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid rgba(30, 224, 182, 0.22);
  background: linear-gradient(135deg, rgba(30, 224, 182, 0.14), rgba(59, 130, 246, 0.10), rgba(10, 20, 29, 0.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 26px rgba(10, 20, 29, 0.22);
}

.stats-section-header span {
  color: #dffef7;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.stats-section-header strong {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(8, 17, 25, 0.65);
  border: 1px solid rgba(30, 224, 182, 0.22);
  color: #9ef7d7;
  font-size: 1rem;
  box-shadow: 0 8px 22px rgba(30, 224, 182, 0.12);
}

.utility-timeline {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap:10px;
}

.utility-timeline > div {
  padding:10px 12px;
  background: rgba(13,21,31,0.8);
  border:1px solid rgba(148,163,184,0.15);
  border-radius:10px;
}

.utility-timeline small {
  display:block;
  color: var(--muted);
  margin-bottom:4px;
}

.insight-note {
  margin-top:12px;
  padding:10px 12px;
  border-radius:8px;
  background: rgba(97,179,255,0.08);
  border:1px solid rgba(97,179,255,0.25);
  color: var(--muted);
  line-height:1.5;
}

.user-controls { display:flex; gap:16px; align-items:flex-start; flex-wrap:wrap; margin-top:12px; }
.user-codes { display:flex; gap:12px; flex-wrap:wrap; }
.code-box { background: rgba(255,255,255,0.02); padding:8px 10px; border-radius:8px; min-width:160px; }
.code-box label { font-size:0.85rem; color: var(--muted); }
.code-value { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:6px; }
.code-value strong { font-size:1rem; }

.dashboard-cta-panel {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  width:100%;
  padding:18px 20px;
  border-radius:18px;
  background: linear-gradient(135deg, rgba(30,224,182,0.16), rgba(59,130,246,0.12), rgba(15,23,42,0.92));
  border:1px solid rgba(30,224,182,0.24);
  box-shadow: 0 18px 36px rgba(9,15,22,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}

.cta-copy {
  display:flex;
  flex-direction:column;
  gap:8px;
}

.cta-copy h3 {
  margin:0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing:-0.03em;
}

.eyebrow.accent {
  display:inline-flex;
  align-items:center;
  width:fit-content;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(8, 17, 25, 0.48);
  border:1px solid rgba(30,224,182,0.2);
  color: #9ef7d7;
  letter-spacing:0.12em;
  text-transform:uppercase;
  font-size:10px;
  font-weight:700;
}

.quick-start-actions {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.user-finance { min-width:260px; display:flex; flex-direction:column; gap:12px; }
.deposit-wallet-box { background: linear-gradient(180deg, rgba(16,35,53,0.82), rgba(12,24,36,0.86)); padding:12px 14px; border:1px solid rgba(30,224,182,0.14); border-radius:12px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.02); }
.deposit-filter-block {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}
.deposit-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.deposit-filter-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}
.deposit-filter-row select,
.deposit-filter-row input {
  min-width: 170px;
  background: rgba(8,17,25,0.9);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
}
.deposit-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  background: transparent;
}
.deposit-table th,
.deposit-table td {
  padding: 14px 16px;
  border-bottom: none;
  text-align: left;
  vertical-align: top;
}

.deposit-table tbody tr {
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(2,8,20,0.35);
}
.deposit-table th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.deposit-table td small,
.deposit-table td a {
  color: var(--muted);
}
.deposit-table td a {
  display: inline-block;
  margin-right: 6px;
  color: var(--primary);
}
.deposit-wallet-row { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; }
.deposit-label { color: var(--muted); font-size:0.8rem; }
.deposit-coin { display:inline-flex; padding:3px 8px; border-radius:999px; background: rgba(30,224,182,0.12); color: var(--primary); font-size:0.75rem; font-weight:700; }
.deposit-wallet-value { display:flex; align-items:center; gap:8px; flex-wrap:wrap; width:100%; min-width:0; }
#adminUniqueWalletText {
  flex: 1 1 150px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wallet-select {
  flex: 0 0 170px;
  max-width: 170px;
  min-width: 0;
  width: 170px;
  padding: 8px 34px 8px 10px;
  border-radius: 8px;
  background: rgba(8, 17, 25, 0.9);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
  background-image: linear-gradient(45deg, transparent 50%, rgba(236,250,255,0.9) 50%), linear-gradient(135deg, rgba(236,250,255,0.9) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* Dashboard-specific testimonials styling */
#testimonialsWidget {
  margin-top: 12px;
}
#testimonialsWidget .testimonials-slider {
  overflow: hidden;
  position: relative;
  padding: 4px 0 12px;
}
#testimonialsWidget .testimonials-track {
  display: flex;
  gap: 16px;
  align-items: stretch;
  width: max-content;
  animation-name: testimonials-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: var(--scroll-duration, 24s);
}
#testimonialsWidget .testimony-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(2,8,20,0.18);
  display: flex;
  flex-direction: column;
  flex: 0 0 320px;
  min-width: 320px;
}
#testimonialsWidget .testimony-meta {
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:8px;
}
#testimonialsWidget .testimony-avatar img {
  width:56px;
  height:56px;
  border-radius:8px;
  object-fit:cover;
}
#testimonialsWidget .avatar-placeholder {
  width:56px;
  height:56px;
  border-radius:8px;
  background: rgba(148,163,184,0.06);
  display:grid;
  place-items:center;
  color:var(--muted);
  font-weight:700;
}
#testimonialsWidget .testimony-info strong { display:block; }
#testimonialsWidget .testimony-prof { color: var(--muted); font-size:0.9rem; }
#testimonialsWidget .testimony-location { color: var(--muted); font-size:0.82rem; margin-top:4px; }
#testimonialsWidget .testimony-comment { margin-top:8px; white-space:pre-wrap; color:var(--text); flex:1 1 auto; }
#testimonialsWidget .testimony-footer { margin-top:10px; color:var(--muted); font-size:0.9rem; }

@keyframes testimonials-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  #testimonialsWidget .testimonials-slider { overflow-x: auto; }
  #testimonialsWidget .testimonials-track { animation: none; }
  #testimonialsWidget .testimony-card { flex: 0 0 calc(100% - 40px); min-width: calc(100% - 40px); }
}
.wallet-select option {
  background: #0d1c2b;
  color: var(--text);
}
#adminUniqueWalletText {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
  font-size: 0.82rem;
}
#copyAdminWalletBtn,
#openAdminWalletQrBtn {
  flex-shrink: 0;
}
.deposit-tip { color: var(--muted); display:block; margin-top:4px; }
.finance-action-row {
  display:flex;
  flex-direction:column;
  gap:8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px;
}
.proof-input-label {
  color: var(--muted);
  font-weight:700;
}
.proof-upload-requirements {
  background: rgba(30,224,182,0.05);
  border: 1px solid rgba(30,224,182,0.12);
  border-radius: 10px;
  padding: 10px 12px;
}
.proof-upload-requirements strong {
  display:block;
  margin-bottom:6px;
  color: var(--text);
}
.proof-upload-requirements ul {
  margin:0;
  padding-left: 18px;
  color: var(--muted);
  line-height:1.6;
}
.proof-upload-row {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.user-finance input[type="file"] {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(255,255,255,0.14);
  background: rgba(8,17,25,0.65);
  color: var(--text);
}
.upload-progress-wrap {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:4px;
}
.upload-progress-meta {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-size: 0.85rem;
}
.upload-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  border:1px solid rgba(255,255,255,0.04);
}
.upload-progress-bar span {
  display:block;
  width: 0%;
  height:100%;
  border-radius:inherit;
  background: linear-gradient(135deg, var(--primary), #56d8ff);
  transition: width 0.2s ease;
}

/* Proof file info small helper */
.proof-file-info {
  display: inline-block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-left: 6px;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.action-btn {
  width:auto;
  min-width: 146px;
}
.secondary-btn { padding:6px 10px; border-radius:8px; background: transparent; border:1px solid rgba(255,255,255,0.06); color: var(--text); cursor:pointer; }

/* Layout helpers */
.plan-grid-cards, .stat-grid, .admin-summary-grid { display:flex; gap:12px; flex-wrap:wrap; }

/* Policy page styles */
.policy-page { padding: 0; }
.policy-header {
  margin-bottom: 32px;
  text-align: center;
}
.policy-header h1 {
  margin: 0 0 8px 0;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.policy-header .lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.5;
}
.admin-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), rgba(30,224,182,0.75));
  color: #07131d;
  box-shadow: 0 4px 12px rgba(30,224,182,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30,224,182,0.3);
}
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}
.btn-danger {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.2);
}
.btn-danger:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.3);
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.policy-card {
  background: linear-gradient(135deg, rgba(16,35,53,0.6), rgba(16,35,53,0.3));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.policy-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(16,35,53,0.8), rgba(16,35,53,0.5));
  box-shadow: 0 12px 32px rgba(30,224,182,0.12), 0 0 24px rgba(63,93,255,0.06);
}
.policy-card-body {
  flex: 1;
}
.policy-title {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #dffef6;
}
.policy-value {
  padding: 12px 14px;
  background: rgba(30,224,182,0.08);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  font-family: 'Courier New', monospace;
}
.policy-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.policy-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.policy-actions .btn {
  flex: 1;
  min-width: 90px;
  justify-content: center;
  padding: 8px 12px;
  font-size: 0.85rem;
}

@media (max-width: 980px) {
  .page-shell { padding: 18px; }
  .page-header { flex-direction: column; align-items: stretch; }
  .dashboard-nav { justify-content: flex-start; }
  .user-header { flex-direction: column; }
  .user-controls { flex-direction: column; }
  .user-codes { width: 100%; }
  .user-finance { width: 100%; }
  .converter-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .page-shell { padding: 14px; }
  .page-header {
    padding: 14px 16px;
    flex-wrap: wrap;
    align-items: center;
  }
  .nav-toggle { display:flex; }
  .dashboard-nav {
    display:none;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    margin-top:8px;
  }
  .dashboard-nav.is-open { display:flex; }
  .dashboard-nav a { flex: 1 1 auto; text-align: center; }
  .policy-header h1 { font-size: 1.8rem; }
  .policy-grid { grid-template-columns: 1fr; }
  .admin-actions { flex-direction: column; }
  .admin-actions .btn { width: 100%; }
  .user-header { flex-direction: column; align-items:stretch; }
  .user-identity-row { flex-direction: column; align-items: stretch; }
  .user-wallet-inline { width: 100%; flex-direction: column; align-items: stretch; }
  .user-wallet-inline label { display:block; margin-bottom:4px; }
  .user-wallet-inline input,
  .user-wallet-inline select,
  .user-wallet-inline button { width: 100%; min-width: 0; }
  .user-stats {
    display:grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    justify-content:flex-start;
    width:100%;
  }
  .stat-card.small { width:100%; }
  .deposit-wallet-box { padding: 10px 12px; }
  .deposit-wallet-row { flex-direction: column; align-items: flex-start; }
  .code-box { width: 100%; min-width: 0; }
  .code-value,
  .deposit-wallet-value { flex-direction: column; align-items: stretch; }
  .user-finance { width:100%; }
  .utility-timeline-summary {
    grid-template-columns: 1fr;
  }
  .proof-upload-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .proof-upload-row > * {
    width: 100%;
    max-width: 100%;
  }
  .deposit-wallet-value > * {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-shell { padding: 12px; }
  .dashboard-nav a { flex-basis: 100%; }
  .user-stats { grid-template-columns: 1fr; }
  .user-wallet-inline input,
  .user-wallet-inline select,
  .user-wallet-inline button,
  .secondary-btn,
  .primary-btn { width: 100%; }
  .page-body { padding: 12px; }
  .deposit-wallet-value { gap: 8px; }
  .deposit-wallet-box { padding: 10px; }
}
