:root {
  --bg: #2b2f38;
  --panel: #22262f;
  --card: #1e2229;
  --txt: #edf2ff;
  --muted: #9aa9c8;
  --blue: #c9a84c;
  --orange: #d4a843;
  --border: #3e434f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, Segoe UI, Tahoma, sans-serif;
  color: var(--txt);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(180,140,50,.12), transparent 40%),
    radial-gradient(ellipse at 80% 100%, rgba(150,120,40,.08), transparent 40%),
    linear-gradient(160deg, #2d3140 0%, #252930 50%, #1e2229 100%);
}

.container { width: min(1160px, 92%); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(30, 34, 41, .92);
  border-bottom: 1px solid rgba(180,150,60,.25);
  backdrop-filter: blur(8px);
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .05em;
}

.menu { display: flex; gap: 16px; }
.menu a {
  color: #cfd8f4;
  text-decoration: none;
  font-size: 14px;
}
.menu a:hover { color: #fff; }

.menu a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.menu a:hover {
  border-bottom-color: var(--orange);
}

.head-actions { display: flex; align-items: center; gap: 10px; }
.link-btn { color: #d5def7; text-decoration: none; font-size: 14px; }

.hero { padding: 54px 0 26px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: center;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
}

h2 { margin: 0 0 8px; font-size: clamp(24px, 2.8vw, 36px); }
h3 { margin: 0 0 8px; }

p { margin: 0; color: #d7def3; }
.muted { color: var(--muted); }
.sub { color: var(--muted); margin-bottom: 14px; max-width: 800px; }

.card {
  background: linear-gradient(180deg, #262b34, #1e2229);
  border: 1px solid rgba(180,150,60,.2);
  border-radius: 16px;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(200,170,80,.06), 0 14px 28px rgba(0,0,0,.35);
}

.hero-media img,
.perf-grid img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

.cta-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.btn.main { background: linear-gradient(135deg, #b8922e, #d4a843); color: #1a1a1a; }
.btn.ghost { background: rgba(255,255,255,.05); border-color: rgba(180,150,60,.35); }
.btn.danger { background: linear-gradient(45deg, #aa2f3f, #de4455); }

.section { padding: 26px 0; }
.section.alt { background: rgba(255,255,255,.02); }

.cards.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.featured { border-color: rgba(180,150,60,.5); }
.tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(180,150,60,.15);
  border: 1px solid rgba(180,150,60,.4);
  font-size: 12px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #d4a843;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.mini {
  margin: 0 0 8px;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
}

.legal-line {
  margin-top: 12px;
  color: #b9c6e5;
  font-size: 14px;
}

.perf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.kpis {
  display: flex;
  gap: 20px;
  margin-top: 14px;
}

.kpis div { display: grid; gap: 2px; }
.kpis strong { font-size: 34px; }
.kpis span { color: var(--muted); font-size: 12px; letter-spacing: .07em; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

.steps span {
  color: #d4a843;
  font-weight: 800;
  display: block;
  margin-bottom: 8px;
}

.quote p { font-style: italic; margin-bottom: 10px; }
.quote small { color: var(--muted); }

.cta-final { text-align: center; }
.cta-final p { color: var(--muted); margin-bottom: 14px; }

.cta-final {
  border-color: rgba(180,150,60,.35);
}

.legality-box {
  border-color: rgba(180,150,60,.3);
}

.legality-box .btn.ghost {
  border-color: rgba(180,150,60,.4);
}

.legality-box .btn.ghost:hover {
  background: rgba(180,150,60,.12);
}

/* === Access Modal base === */
.access-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.access-modal.hidden { display: none; }
.access-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}

/* === AM Modal Box === */
.am-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: linear-gradient(160deg, #12161d 0%, #1a1f2a 100%);
  border: 1px solid rgba(201,160,48,.22);
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow: 0 0 60px rgba(0,0,0,.7), 0 0 30px rgba(201,160,48,.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(201,160,48,.25) transparent;
}
.am-box::-webkit-scrollbar { width: 4px; }
.am-box::-webkit-scrollbar-thumb { background: rgba(201,160,48,.25); border-radius: 4px; }

/* Close button */
.am-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #8a9ab5;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.am-close:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Brand header */
.am-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-right: 36px;
}
.am-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.am-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #e8d5a3;
  letter-spacing: .5px;
}
.am-brand-sub {
  font-size: 11px;
  color: #5a6a80;
  margin-top: 2px;
}

/* Tab switcher */
.am-tabs {
  display: flex;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 22px;
  gap: 4px;
}
.am-tab {
  flex: 1;
  padding: 8px 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #5a6a80;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.am-tab.active {
  background: linear-gradient(135deg, #c9a030, #f0c040);
  color: #0d1117;
  box-shadow: 0 2px 10px rgba(201,160,48,.35);
}

/* Panels */
.am-panel { animation: amFadeIn .2s ease; }
@keyframes amFadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

/* Form fields */
.am-field {
  margin-bottom: 14px;
}
.am-field > label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #6a7a90;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 5px;
}
.am-required { color: #ef4444; }

.am-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.am-fi {
  position: absolute;
  left: 11px;
  color: #5a6a80;
  pointer-events: none;
  flex-shrink: 0;
}
.am-input-wrap input,
.am-input-wrap select {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #d5def7;
  font-size: 14px;
  padding: 10px 36px 10px 36px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.am-input-wrap select { cursor: pointer; }
.am-input-wrap input:focus,
.am-input-wrap select:focus {
  border-color: rgba(201,160,48,.7);
  box-shadow: 0 0 0 3px rgba(201,160,48,.12);
}
.am-input-wrap input::placeholder { color: #3a4a5a; }

.am-val {
  position: absolute;
  right: 36px;
  font-size: 14px;
}

/* Eye toggle */
.am-eye {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #5a6a80;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color .2s;
  z-index: 2;
}
.am-eye:hover { color: #c9a030; }
.am-input-wrap input[type="password"],
.am-input-wrap input[type="text"] { padding-right: 38px; }

/* Forgot / switch */
.am-forgot-row {
  text-align: right;
  margin: -6px 0 12px;
}
.am-forgot-row a {
  font-size: 12px;
  color: #6a7a90;
  text-decoration: none;
  transition: color .2s;
}
.am-forgot-row a:hover { color: #f59e0b; }
.am-switch-text {
  text-align: center;
  font-size: 12px;
  color: #4a5a6a;
  margin-top: 12px;
}
.am-switch-text a { color: #c9a030; text-decoration: none; }
.am-switch-text a:hover { color: #f0c040; }

/* 2-column row */
.am-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 400px) { .am-row-2 { grid-template-columns: 1fr; } }

/* Buttons */
.am-btn-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #b8860b, #d4a017, #f0c040);
  color: #0d1117;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .3px;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(201,160,48,.3);
  margin-top: 4px;
}
.am-btn-main:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(201,160,48,.4); }
.am-btn-main:active { transform: translateY(0); }
.am-btn-main:disabled { opacity: .5; cursor: not-allowed; }

.am-btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid rgba(201,160,48,.35);
  border-radius: 10px;
  background: transparent;
  color: #c9a030;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  margin-top: 4px;
}
.am-btn-ghost:hover { background: rgba(201,160,48,.08); border-color: rgba(201,160,48,.6); }

.am-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.am-btn-row .am-btn-main { flex: 2; width: auto; }
.am-btn-row .am-btn-ghost { flex: 1; }

.am-btn-link {
  background: none;
  border: none;
  color: #5a6a80;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s;
}
.am-btn-link:hover { color: #c9a030; }

/* Error message */
.am-err-msg {
  color: #f87171;
  font-size: 12px;
  margin-top: 10px;
  text-align: center;
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.2);
  border-radius: 8px;
  padding: 8px 12px;
}

/* [SECURITY R2 2026-06-12] Strong, fully-opaque login error so it is clearly visible inside the box */
.am-err-strong {
  color: #fee2e2;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 12px;
  background: #471b1f;
  border: 1px solid #f87171;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  border-radius: 10px;
  padding: 11px 14px;
  animation: amErrShake .28s ease;
}
.am-err-strong::before {
  content: "\26A0";
  margin-inline-end: 7px;
  font-weight: 700;
}
@keyframes amErrShake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ── Stepper ── */
.am-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 20px;
  gap: 0;
}
.signup-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.am-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}
.am-step-dot span {
  font-size: 12px;
  font-weight: 700;
  color: #4a5a6a;
}
.am-step-lbl {
  font-size: 10px;
  color: #4a5a6a;
  font-weight: 600;
  white-space: nowrap;
  transition: color .3s;
}
.signup-step.active .am-step-dot {
  background: linear-gradient(135deg, #c9a030, #f0c040);
  border-color: #f0c040;
  box-shadow: 0 0 12px rgba(201,160,48,.5);
}
.signup-step.active .am-step-dot span { color: #0d1117; }
.signup-step.active .am-step-lbl { color: #f0c040; }
.signup-step.done .am-step-dot { background: #166534; border-color: #22c55e; }
.signup-step.done .am-step-dot span { color: #86efac; }
.signup-step.done .am-step-lbl { color: #22c55e; }

.am-step-bar {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,.08);
  margin: 13px 4px 0;
  border-radius: 2px;
  overflow: hidden;
  min-width: 20px;
}
.am-step-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #c9a030, #f0c040);
  border-radius: 2px;
  transition: width .4s ease;
}

/* ── Password strength ── */
.am-pw-strength-bar {
  height: 4px;
  background: rgba(255,255,255,.07);
  border-radius: 4px;
  margin: 4px 0 4px;
  overflow: hidden;
}
.am-pw-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width .3s, background .3s;
}
.am-pw-strength-lbl {
  font-size: 11px;
  color: #5a6a80;
  margin: 0 0 8px;
}
.am-pw-rules {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  font-size: 11px;
  color: #3a4a5a;
}
.am-pw-rules li::before { content: '✗  '; color: #ef4444; }
.am-pw-rules li.ok::before { content: '✓  '; color: #22c55e; }
.am-pw-rules li.ok { color: #22c55e; }
.am-pw-match {
  font-size: 11px;
  margin: 2px 0 8px;
}

/* ── OTP ── */
.am-otp-header {
  text-align: center;
  margin-bottom: 18px;
}
.am-otp-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.am-otp-header h4 {
  color: #e8d5a3;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}
.am-otp-header p {
  color: #5a6a80;
  font-size: 13px;
  margin: 0;
}
.am-otp-email {
  color: #f59e0b !important;
  font-weight: 600;
  margin-top: 2px !important;
}
.am-otp-boxes {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.am-otp-box {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #e8d5a3;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  caret-color: #f59e0b;
}
.am-otp-box:focus {
  border-color: rgba(201,160,48,.7);
  box-shadow: 0 0 0 3px rgba(201,160,48,.15);
}
.am-otp-box.filled {
  border-color: rgba(201,160,48,.5);
  background: rgba(201,160,48,.08);
}
.am-otp-timer {
  font-size: 12px;
  color: #5a6a80;
  text-align: center;
  margin: 0 0 12px;
}

/* backward compat — keep these so existing selects/inputs in KYC etc still work */
.signup-next-btn { width: 100%; margin-top: 6px; }
.signup-btn-row  { display: flex; gap: 10px; margin-top: 6px; }
.signup-btn-row .btn { flex: 1; }

/* === Company Ref Link Box === */
.company-ref-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.company-ref-box > p {
  font-size: 13px;
  color: #8a9ab5;
  margin-bottom: 8px;
}
.company-ref-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(180,150,60,.25);
  border-radius: 10px;
  padding: 10px 14px;
  word-break: break-all;
}
.company-ref-link span {
  flex: 1;
  font-size: 13px;
  color: #d5def7;
  font-family: monospace;
}

.cabinet-shell {
  margin-top: 10px;
  border: 1px solid rgba(180,150,60,.2);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(30, 34, 41, .85);
}

.cabinet-head {
  padding: 16px;
  border-bottom: 1px solid rgba(180,150,60,.2);
  background: linear-gradient(180deg, #262b34, #1e2229);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cabinet-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(180,150,60,.2);
  background: rgba(24, 27, 33, .9);
  /* fade on right edge hint */
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, #000 88%, transparent 100%);
}
.cabinet-nav::-webkit-scrollbar { display: none; }

.nav-btn {
  border: 1px solid rgba(180,150,60,.25);
  background: #22262f;
  color: var(--txt);
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-btn.active {
  background: linear-gradient(90deg, #3a3015, #4a3c18);
  border-color: #c9a84c;
}

.content { padding: 16px; }
.view { display: none; }
.view.active { display: block; }
.hidden { display: none !important; }

/* Terms Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-box {
  background: #1a2540;
  border: 1px solid #2a3a5c;
  border-radius: 14px;
  padding: 28px 32px;
  max-width: 440px;
  width: 90%;
  direction: rtl;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

.grid-2, .grid-3, .grid-4 { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

label {
  display: block;
  margin-top: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

input, select {
  width: 100%;
  background: #1e2229;
  border: 1px solid rgba(180,150,60,.3);
  color: var(--txt);
  border-radius: 8px;
  padding: 10px;
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
.table { width: 100%; border-collapse: collapse; min-width: 480px; }
.table th, .table td {
  border-bottom: 1px solid rgba(180,150,60,.15);
  padding: 10px;
  text-align: left;
}
.table th { color: #c9a84c; font-weight: 600; }

.package-preview {
  position: relative;
  overflow: hidden;
}

.package-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/src/assets/logo-icon.jpg') center center / 65% auto no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.package-preview > * {
  position: relative;
  z-index: 1;
}

.package-preview-head {
  margin-bottom: 8px;
}

.package-preview .table th,
.package-preview .table td {
  background: rgba(9, 18, 35, .18);
  backdrop-filter: blur(1px);
}

.invest-intro {
  margin-bottom: 14px;
  background: linear-gradient(180deg, #ffffff, #f4f7ff);
  border-color: #d7dfef;
  color: #1c2b47;
}

.invest-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  align-items: center;
}

.invest-intro p,
.invest-intro li,
.invest-intro small,
.invest-intro h3,
.invest-intro span {
  color: #2b3a58;
}

.intro-label {
  font-size: 14px;
  margin-bottom: 8px;
}

.intro-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #d8e1f0;
  border-radius: 10px;
  background: #fff;
}

.intro-currency {
  font-weight: 700;
  color: #2f6fe6 !important;
}

.intro-amount {
  font-size: 24px;
  color: #27344f;
}

.intro-progress-track {
  margin-top: 12px;
  height: 12px;
  border-radius: 999px;
  background: #e5ebf7;
  overflow: hidden;
}

.intro-progress-track > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff9800, #ffa726);
}

.intro-minmax {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #5f6f91;
}

.intro-logo-img {
  width: 100%;
  display: block;
  border-radius: 10px;
  margin-top: 12px;
  object-fit: cover;
}

.invest-right h3 {
  font-size: 34px;
  margin-bottom: 10px;
}

.invest-right h3 span {
  color: #f4a000;
}

.intro-metrics {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.intro-metrics li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e7edf8;
  padding-bottom: 6px;
}

.intro-metrics li strong {
  color: #ce8400;
}

.intro-bars {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.intro-bars > div {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.bar-val {
  font-size: 11px;
  font-weight: 700;
  color: #e8d5a3 !important;
  letter-spacing: .02em;
}

.intro-bars > div span {
  width: 36px;
  height: 20px;
  border-radius: 6px 6px 0 0;
  display: block;
}

#barDeposit { background: #ff9800; }
#barNet { background: #1f55b9; }
#barTotal { background: #ef3d3d; }

.intro-invest-btn {
  margin-top: 14px;
  background: linear-gradient(90deg, #c9a030, #a07820);
}

.tank-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #c8d3ea;
  margin-bottom: 6px;
}

.tank-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #1e2229;
  border: 1px solid rgba(180,150,60,.3);
}

.tank-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #2ecc71);
}

.status-ok { color: #2ecc71; font-weight: 700; }
.status-pending { color: #f7c153; font-weight: 700; }
.status-bad { color: #ff7b8a; font-weight: 700; }

.mt { margin-top: 14px; }
.compact { align-items: end; }

/* ══════════════════════════════════════
   💰  Deposits Page – Redesign
══════════════════════════════════════ */

/* Page header */
.dep-page-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.dep-page-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.dep-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(180,150,60,.2);
  border-radius: 10px;
  padding: 8px 16px;
  min-width: 90px;
  gap: 2px;
}
.dep-stat span { font-size: 11px; color: #8a9ab8; text-transform: uppercase; letter-spacing: .06em; }
.dep-stat strong { font-size: 18px; font-weight: 800; color: #edf2ff; }

/* Cards grid */
.dep-cards-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

/* Single deposit card */
.dep-card {
  background: linear-gradient(160deg, #1e2430, #252c3a);
  border: 1px solid rgba(180,150,60,.25);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s;
}
.dep-card:hover { border-color: rgba(180,150,60,.5); }

/* Top row */
.dep-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dep-card-code {
  font-size: 13px;
  font-weight: 700;
  color: #c9a84c;
  letter-spacing: .06em;
  font-family: monospace;
}
.dep-card-badges { display: flex; gap: 6px; flex-wrap: wrap; }

/* Status badges */
.dep-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.dep-badge--active  { background: rgba(46,204,113,.15);  color: #2ecc71; border: 1px solid rgba(46,204,113,.35); }
.dep-badge--pending { background: rgba(247,193,83,.15);  color: #f7c153; border: 1px solid rgba(247,193,83,.35); }
.dep-badge--done    { background: rgba(100,180,255,.15); color: #64b4ff; border: 1px solid rgba(100,180,255,.35); }
.dep-badge--closed  { background: rgba(255,100,100,.1);  color: #ff7b8a; border: 1px solid rgba(255,100,100,.3); }

/* Status tracker */
.dep-status-track {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border-radius: 10px;
  border: 1px solid rgba(180,150,60,.12);
}
.dst-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.dst-step span {
  font-size: 10px;
  color: #4a5568;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.dst-step.dst-done span { color: #c9a84c; }
.dst-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #3a4152;
  background: #1e2229;
}
.dst-step.dst-done .dst-dot {
  border-color: #c9a84c;
  background: linear-gradient(135deg, #b8922e, #d4a843);
}
.dst-line {
  flex: 1;
  height: 2px;
  background: #2a3040;
  margin-bottom: 18px;
  min-width: 24px;
}
.dst-line.dst-line-done { background: linear-gradient(90deg, #b8922e, #d4a843); }

/* Info grid */
.dep-card-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.dep-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255,255,255,.03);
  border-radius: 8px;
  padding: 7px 9px;
}
.dep-info-item span {
  font-size: 10px;
  color: #5a6b88;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dep-info-item strong {
  font-size: 13px;
  color: #edf2ff;
  font-weight: 700;
}

/* Progress bar */
.dep-card-prog { display: flex; flex-direction: column; gap: 6px; }
.dep-prog-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8a9ab8;
}
.dep-prog-labels strong { color: #edf2ff; font-size: 13px; }
.dep-prog-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  border: 1px solid rgba(180,150,60,.15);
}
.dep-prog-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .5s ease;
}
.dep-prog-amounts {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #5a6b88;
}

/* Empty state */
.dep-empty {
  text-align: center;
  padding: 48px 24px;
  color: #5a6b88;
  grid-column: 1 / -1;
}
.dep-empty p { margin-bottom: 16px; font-size: 15px; }

/* Mobile: single column */
@media (max-width: 640px) {
  .dep-cards-wrap { grid-template-columns: 1fr; }
  .dep-card-info  { grid-template-columns: repeat(2, 1fr); }
  .dep-page-hd    { flex-direction: column; }
}

/* ── Notification Bell ───────────────────────────────────────────── */
.notif-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.notif-bell {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  position: relative;
  padding: 4px 6px;
  line-height: 1;
  color: var(--txt);
  transition: transform .15s;
}
.notif-bell:hover { transform: scale(1.15); }
.notif-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--card, #1a1a2e);
  border: 1px solid var(--border, #2a2a4a);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  z-index: 9999;
}
.notif-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #2a2a4a);
  font-weight: 600;
  font-size: 14px;
}
.notif-readall-btn {
  background: none;
  border: none;
  color: var(--accent, #7c6dfa);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 5px;
  transition: background .15s;
}
.notif-readall-btn:hover { background: rgba(124,109,250,.12); }
#notifList {
  list-style: none;
  margin: 0;
  padding: 0;
}
.notif-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border, #2a2a4a);
  transition: background .12s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,255,255,.04); }
.notif-unread { background: rgba(124,109,250,.08); }
.notif-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.notif-item p {
  margin: 0 0 3px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--txt);
}
.notif-item small {
  font-size: 11px;
  color: var(--txt-dim, #888);
}
.notif-empty {
  text-align: center;
  padding: 28px 14px;
  color: var(--txt-dim, #888);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 20px;
  bottom: 20px;
  background: #262b34;
  border: 1px solid rgba(180,150,60,.4);
  border-radius: 10px;
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: .2s;
}

.toast.show { opacity: 1; transform: translateY(0); }

.site-footer {
  border-top: 1px solid rgba(180,150,60,.2);
  margin-top: 24px;
  background: rgba(24,27,33,.9);
}

.footer-row {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-row p { color: #9fb0d3; font-size: 13px; }
.footer-row a {
  color: #c2d1ef;
  text-decoration: none;
  font-size: 13px;
  margin-left: 10px;
}

@media (max-width: 980px) {
  .menu { display: none; }
  .hero-grid, .perf-grid { grid-template-columns: 1fr; }
  .invest-intro-grid { grid-template-columns: 1fr; }
  .cards.three { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .head-row { flex-wrap: wrap; }
  .cards.three, .steps { grid-template-columns: 1fr; }
  .kpis { flex-direction: column; gap: 10px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   أعمالي  –  My Business View
══════════════════════════════════════ */
.mb-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.mb-head h2 {
  font-size: 22px;
  color: #e8d5a3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c9a030, #a07820);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 0 6px;
}

/* ── Summary row ── */
.mb-summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.mb-sum-item {
  background: rgba(201,168,76,.07);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mb-sum-item span {
  font-size: 11px;
  color: #9aa9c8;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.mb-sum-item strong {
  font-size: 17px;
  color: #e8d5a3;
  font-weight: 800;
}

.mb-sum-item.highlight {
  background: rgba(201,168,76,.14);
  border-color: rgba(201,168,76,.45);
}

.mb-sum-item.highlight strong {
  color: #f0d060;
}

/* ── Cards grid ── */
.mb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ── Single card ── */
.mb-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,.3);
  background: linear-gradient(160deg, #1e2229, #262b34);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}

.mb-card-glow {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.18), transparent 70%);
  pointer-events: none;
}

.mb-card-inner {
  padding: 18px;
  position: relative;
  z-index: 1;
}

.mb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.mb-pkg-name {
  font-size: 15px;
  font-weight: 800;
  color: #d4a843;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.mb-dep-id {
  font-size: 11px;
  color: #6a7a9a;
  margin-top: 2px;
}

.mb-status {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.mbst-filling {
  background: rgba(247,193,83,.12);
  color: #f7c153;
  border: 1px solid rgba(247,193,83,.35);
}

.mbst-full {
  background: rgba(46,204,113,.12);
  color: #2ecc71;
  border: 1px solid rgba(46,204,113,.35);
}

/* ── Principal ── */
.mb-principal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(201,168,76,.06);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.mb-principal-label {
  font-size: 12px;
  color: #8a9ab8;
}

.mb-principal-val {
  font-size: 20px;
  font-weight: 800;
  color: #f0d87a;
}

.mb-principal-val em {
  font-style: normal;
  font-size: 12px;
  color: #9aa9c8;
  margin-left: 4px;
}

/* ── Section title ── */
.mb-section-title {
  font-size: 11px;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 6px;
  margin-top: 12px;
}

/* ── Progress bars ── */
.mb-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.mb-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}

.mb-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9a030, #f0d060);
  transition: width .5s ease;
}

.mb-bar.days-bar > span {
  background: linear-gradient(90deg, #2980b9, #56b4d3);
}

.mb-bar-pct {
  font-size: 11px;
  color: #8a9ab8;
  min-width: 52px;
  text-align: right;
}

/* ── Profit numbers ── */
.mb-profit-nums {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6a7a9a;
  margin-bottom: 4px;
}

.mb-profit-nums strong {
  color: #d4a843;
}

/* ── Stats grid ── */
.mb-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.mb-stat {
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mb-stat span {
  font-size: 10px;
  color: #7a8aaa;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.mb-stat strong {
  font-size: 13px;
  color: #e8d5a3;
  font-weight: 700;
}

/* ── Empty state ── */
.mb-empty {
  text-align: center;
  padding: 40px;
  color: #8a9ab8;
}

.mb-empty p {
  margin-bottom: 16px;
  font-size: 15px;
}

@media (max-width: 640px) {
  .mb-grid { grid-template-columns: 1fr; }
  .mb-summary-row { grid-template-columns: 1fr 1fr; }
}

/* ── Active Deposit Cards – golden text overrides ── */
.active-dep-grid .invest-intro,
.mb-grid .invest-intro {
  background: linear-gradient(160deg, #1e2229, #262b34);
  border-color: rgba(180,150,60,.35);
  color: #e8d5a3;
}

.active-dep-grid .invest-intro p,
.active-dep-grid .invest-intro li,
.active-dep-grid .invest-intro small,
.active-dep-grid .invest-intro span,
.mb-grid .invest-intro p,
.mb-grid .invest-intro li,
.mb-grid .invest-intro small,
.mb-grid .invest-intro span {
  color: #c9a84c;
}

.active-dep-grid .intro-label,
.mb-grid .intro-label {
  color: #d4a843 !important;
  font-weight: 600;
}

.active-dep-grid .intro-amount-row,
.mb-grid .intro-amount-row {
  background: rgba(201,168,76,.08);
  border-color: rgba(201,168,76,.3);
}

.active-dep-grid .intro-currency,
.mb-grid .intro-currency {
  color: #c9a84c !important;
}

.active-dep-grid .intro-amount,
.mb-grid .intro-amount {
  color: #f0d87a !important;
}

.active-dep-grid .intro-progress-track,
.mb-grid .intro-progress-track {
  background: rgba(201,168,76,.15);
}

.active-dep-grid .intro-minmax,
.mb-grid .intro-minmax {
  color: #b89640 !important;
}

.active-dep-grid .invest-right h3,
.mb-grid .invest-right h3 {
  color: #e8d5a3;
}

.active-dep-grid .invest-right h3 span,
.mb-grid .invest-right h3 span {
  color: #f0d060;
}

.active-dep-grid .intro-metrics li,
.mb-grid .intro-metrics li {
  border-bottom-color: rgba(201,168,76,.2);
}

.active-dep-grid .intro-metrics li span,
.mb-grid .intro-metrics li span {
  color: #a88c3a !important;
}

.active-dep-grid .intro-metrics li strong,
.mb-grid .intro-metrics li strong {
  color: #f0c040 !important;
}

.active-dep-grid .intro-invest-btn {
  background: linear-gradient(90deg, #c9a030, #a07820);
  color: #fff;
}

.active-dep-title {
  margin: 0 0 14px;
  font-size: 16px;
  color: #c9a84c;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.active-dep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

/* mb-grid: كرت عريض بعمود واحد مثل الأصلي */
.mb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* ── Capacity bar (deposit vs package max) ── */
.cap-bar-wrap {
  margin-top: 10px;
  margin-bottom: 4px;
}

.cap-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,.3);
  background: rgba(255,255,255,.06);
}

.cap-filled {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c9a030, #f0d060);
  border-radius: 999px 0 0 999px;
  transition: width .5s ease;
  min-width: 2px;
}

.cap-remaining {
  display: block;
  height: 100%;
  background: rgba(100,120,160,.18);
  border-radius: 0 999px 999px 0;
  min-width: 2px;
}

.cap-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: #8a9ab8;
}

.cap-lbl-dep strong,
.cap-lbl-rem strong {
  color: #e8d5a3;
}

.cap-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 4px;
}

.cap-dot.dep { background: #c9a030; }
.cap-dot.rem { background: rgba(100,120,160,.5); margin-right: 0; margin-left: 4px; }

.cap-range {
  font-size: 10px;
  color: #6a7a9a;
  margin-top: 4px;
  letter-spacing: .03em;
}

.dep-card {
  position: relative;
  background: linear-gradient(160deg, #262b34, #1e2229);
  border: 1px solid rgba(180,150,60,.3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.dep-card-bg {
  position: absolute;
  inset: 0;
  background: url('/src/assets/package-cover.jpg') center/cover no-repeat;
  opacity: .08;
  pointer-events: none;
}

.dep-card-body {
  position: relative;
  z-index: 1;
  padding: 16px;
}

.dep-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.dep-card-pkg {
  font-size: 13px;
  font-weight: 800;
  color: #d4a843;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.dep-card-id {
  font-size: 11px;
  color: #8a9ab8;
}

.dep-card-amount {
  font-size: 26px;
  font-weight: 800;
  color: #edf2ff;
  margin-bottom: 2px;
}

.dep-card-currency {
  font-size: 12px;
  color: #9aa9c8;
  margin-bottom: 12px;
}

.dep-card-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #9aa9c8;
  margin-bottom: 4px;
}

.dep-card-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-bottom: 12px;
}

.dep-card-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c9a030, #f0d060);
  border-radius: 999px;
}

.dep-card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.dep-card-metric {
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  padding: 7px 10px;
}

.dep-card-metric span {
  display: block;
  font-size: 10px;
  color: #8a9ab8;
  margin-bottom: 2px;
}

.dep-card-metric strong {
  font-size: 13px;
  color: #edf2ff;
}

.dep-card-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.dep-card-status.ok { background: rgba(46,204,113,.15); color: #2ecc71; border: 1px solid rgba(46,204,113,.3); }
.dep-card-status.filling { background: rgba(247,193,83,.15); color: #f7c153; border: 1px solid rgba(247,193,83,.3); }
.dep-card-status.full { background: rgba(46,204,113,.15); color: #2ecc71; border: 1px solid rgba(46,204,113,.3); }

@media (max-width: 640px) {
  .active-dep-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   Dashboard – New Design
══════════════════════════════════════ */

/* ── Welcome bar ── */
.dash-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #1e2430 0%, #252c3a 100%);
  border: 1px solid rgba(180,150,60,.25);
  border-radius: 16px;
}
.dash-welcome-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b8922e, #d4a843);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  flex-shrink: 0;
}
.dash-greet {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #e8d5a3;
}
.dash-date {
  font-size: 13px;
  color: #8a9ab5;
}
.dash-invest-btn {
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 14px;
}

/* ── KPI Cards ── */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.dash-kpi-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #1e2430, #252c3a);
  border: 1px solid rgba(180,150,60,.2);
  border-radius: 14px;
  padding: 18px 16px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.dash-kpi-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--kpi-color, #c9a84c);
  border-radius: 14px 14px 0 0;
}
.dkc-icon {
  font-size: 26px;
  line-height: 1;
  margin-top: 2px;
}
.dkc-body { flex: 1; }
.dkc-val {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}
.dkc-title {
  font-size: 12px;
  color: var(--kpi-color, #c9a84c);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dkc-hint {
  font-size: 11px;
  color: #5a6b88;
  margin-top: 4px;
}
.dkc-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 100%;
  background: rgba(255,255,255,.04);
}

/* ── Middle row ── */
.dash-mid-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  margin-bottom: 14px;
}

/* ── Card header shared ── */
.dash-card-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(180,150,60,.12);
}
.dash-card-hd h3 {
  flex: 1;
  font-size: 15px;
  margin: 0;
  color: #d5def7;
}
.dash-icon { font-size: 18px; }
.dash-link-btn {
  background: none;
  border: none;
  color: #c9a84c;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}
.dash-link-btn:hover { text-decoration: underline; color: #e8d5a3; }

/* ── Wallet rows ── */
.dash-wallets-list { display: flex; flex-direction: column; gap: 10px; }
.dash-wallet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(180,150,60,.12);
  border-radius: 10px;
}
.dwr-currency {
  font-weight: 700;
  color: #c9a84c;
  font-size: 13px;
  min-width: 48px;
}
.dwr-amount {
  font-size: 16px;
  font-weight: 700;
  color: #2ecc71;
  flex: 1;
}
.dwr-addr {
  font-size: 11px;
  color: #5a6b88;
  font-family: monospace;
}

/* ── Deposit rows ── */
.dash-dep-list { display: flex; flex-direction: column; gap: 10px; }
.dash-dep-row {
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(180,150,60,.12);
  border-radius: 10px;
}
.ddr-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ddr-pkg {
  font-size: 13px;
  font-weight: 700;
  color: #d5def7;
}
.ddr-amount {
  font-size: 13px;
  font-weight: 700;
  color: #c9a84c;
}
.ddr-progress-wrap {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  margin-bottom: 6px;
}
.ddr-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #2ecc71);
  transition: width .4s;
}
.ddr-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.ddr-code { color: #5a6b88; }
.ddr-pct { color: #c9a84c; font-weight: 600; }
.ddr-sub {
  font-size: 11px;
  color: #5a6b88;
  margin-top: 4px;
  direction: rtl;
  text-align: right;
}

/* ── بادج اليوم على بطاقة الاستثمار ── */
.mb-day-badge {
  display: inline-block;
  background: linear-gradient(90deg, #c9a030, #f4c842);
  color: #1a1a2e;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ── شريط تقدم الأيام ── */
.mb-days-track {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: #e5ebf7;
  overflow: hidden;
}
.mb-days-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2ecc71, #27ae60);
  transition: width .4s ease;
}

/* ── Bottom row ── */
.dash-bot-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

/* ── Activity list ── */
.dash-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}
.dact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #b5c2dc;
  padding: 8px 10px;
  background: rgba(255,255,255,.025);
  border-radius: 8px;
}
.dact-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9a84c;
  flex-shrink: 0;
  margin-top: 4px;
}
.dash-empty { color: #5a6b88; font-size: 13px; margin: 0; }
.dash-empty-li { color: #5a6b88; font-size: 13px; list-style: none; }

/* ── Quick actions ── */
.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dash-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(180,150,60,.18);
  border-radius: 12px;
  cursor: pointer;
  color: #c8d4e8;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: background .2s, border-color .2s;
}
.dash-quick-btn:hover {
  background: rgba(180,150,60,.1);
  border-color: rgba(180,150,60,.4);
  color: #e8d5a3;
}
.dqb-icon { font-size: 22px; line-height: 1; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-mid-row { grid-template-columns: 1fr; }
  .dash-bot-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .dash-welcome { flex-direction: column; align-items: flex-start; }
  .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-quick-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════
   📱  Mobile — Cabinet, Nav & Tables
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Site header ── */
  .head-row { padding: 10px 0; }
  .link-btn { font-size: 13px; }
  .btn { padding: 9px 12px; font-size: 13px; }

  /* ── Cabinet head: hide long description ── */
  .cabinet-head {
    flex-wrap: wrap;
    padding: 12px 14px;
    gap: 8px;
  }
  .cabinet-head .sub { display: none; }

  /* ── Cabinet nav → horizontal scroll (no wrapping) ── */
  .cabinet-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 10px;
    gap: 6px;
    /* fade on right edge to hint at more buttons */
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    mask-image: linear-gradient(to right, #000 85%, transparent 100%);
  }
  .cabinet-nav::-webkit-scrollbar { display: none; }

  /* ── Nav buttons: compact, no line breaks ── */
  .nav-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 12px;
    padding: 7px 10px;
  }

  /* ── Content padding ── */
  .content { padding: 10px; }

  /* ── Tables: horizontal scroll ── */
  .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
  .table thead, .table tbody, .table tr { min-width: 0; }
  .table th, .table td { white-space: nowrap; }

  /* ── Welcome bar: hide date on very small ── */
  .dash-date { font-size: 12px; }

  /* ── KPI values: slightly smaller ── */
  .dkc-val { font-size: 18px; }
  .dash-greet { font-size: 16px; }
}