html { background: #eef0f3; }
body { margin: 0; min-height: 100vh; padding: 0; }
@media (min-width: 481px) { body { padding: 1px 0 24px; } }
#dn-app {
    /* پایه‌ی خنثی و مینیمال؛ هر نقش (سرمایه‌گذار/مشتری/صندوق) رنگ تاکیدی خودش را پایین‌تر بازنویسی می‌کند */
    --dn-ink: #12182b;
    --dn-ink-2: #333f58;
    --dn-paper: #f4f5f7;
    --dn-card: #ffffff;
    --dn-gold: #4a5568;
    --dn-gold-soft: #eef0f3;
    --dn-line: #e7e8ec;
    --dn-green: #0d8a56;
    --dn-green-soft: #e5f6ed;
    --dn-red: #d13b30;
    --dn-red-soft: #fbeae8;
    --dn-amber: #b5720f;
    --dn-amber-soft: #faf0dc;
    --dn-muted: #757c8c;

    font-family: 'Vazirmatn', 'IRANSansX', 'IRANSans', Tahoma, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    background: var(--dn-paper);
    color: var(--dn-ink);
    border: 1px solid var(--dn-line);
    border-radius: 0;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 8px rgba(20,25,35,0.05);
    transition: background .2s;
  }

  /* ---- رنگ تاکیدی مجزا برای هر نقش (مینیمال، فقط یک رنگ تاکیدی تغییر می‌کند) ---- */
  #dn-app.dn-role-investor { --dn-gold: #059669; --dn-gold-soft: #e2f5ee; }
  #dn-app.dn-role-issuer   { --dn-gold: #b45309; --dn-gold-soft: #f7ecdc; }
  #dn-app.dn-role-fund     { --dn-gold: #4338ca; --dn-gold-soft: #eaeafb; }
  #dn-app * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  #dn-app button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: transform .1s ease, opacity .15s ease, background .15s ease;
  }
  #dn-app button:active { transform: scale(.97); }
  #dn-app input, #dn-app select {
    font-family: inherit;
    direction: ltr;
    text-align: right;
    -webkit-appearance: none;
    appearance: none;
  }

  /* ---- top bar / role switcher ---- */
  .dn-topbar {
    background: var(--dn-ink);
    color: #f1f2f6;
    padding: 14px 16px 12px;
  }
  .dn-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
  .dn-brand-mark {
    width: 24px; height: 24px; border-radius: 7px; background: var(--dn-gold); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0;
  }
  .dn-brand .dn-name { font-size: 15px; font-weight: 700; letter-spacing: .2px; }
  .dn-brand .dn-tag { font-size: 10.5px; color: #cfd3dc; border: 1px solid rgba(255,255,255,0.18); border-radius: 100px; padding: 2px 9px; }
  .dn-roles { display: flex; gap: 4px; background: rgba(255,255,255,0.07); border-radius: 11px; padding: 4px; width: 100%; }
  .dn-role-btn {
    flex: 1;
    text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    background: transparent;
    color: #a9adba;
    font-size: 12px;
    line-height: 1.3;
    padding: 9px 4px;
    border-radius: 8px;
    transition: background .15s, color .15s;
    text-align: center;
    min-height: 40px;
  }
  .dn-role-icon { display: inline-flex; }
  .dn-role-btn.active { background: var(--dn-gold); color: #ffffff; font-weight: 700; }

  .dn-body { padding: 16px; min-height: 360px; -webkit-overflow-scrolling: touch; }

  .dn-demo-note {
    background: var(--dn-gold-soft);
    color: var(--dn-ink-2);
    font-size: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 14px;
    line-height: 1.7;
  }

  /* ---- generic card ---- */
  .dn-card {
    background: var(--dn-card);
    border: 1px solid var(--dn-line);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(16,24,40,0.03);
  }
  .dn-card h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; line-height: 1.4; }
  .dn-card .dn-sub { font-size: 12px; color: var(--dn-muted); margin: 0 0 12px; line-height: 1.6; }
  .dn-req { color: var(--dn-red); }
  .dn-limit-hint { font-size: 11.5px; color: var(--dn-muted); margin: -6px 0 10px; }
  .dn-attach-box { border: 1px dashed var(--dn-line); border-radius: 12px; padding: 10px; margin-bottom: 10px; background: #fbfbfc; }
  .dn-attach-box .dn-field { margin-bottom: 0; }

  .dn-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .dn-field { margin-bottom: 12px; }
  .dn-field label { display: block; font-size: 12.5px; color: var(--dn-ink-2); margin-bottom: 5px; }
  .dn-field input, .dn-field select {
    width: 100%; padding: 11px 11px; border: 1px solid #dcdee3; border-radius: 10px; font-size: 14px; background: #fff;
    min-height: 42px;
  }
  .dn-field input:focus, .dn-field select:focus { outline: none; border-color: var(--dn-gold); }

  .dn-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 16px; border-radius: 11px; font-size: 14px; font-weight: 700;
    min-height: 44px;
  }
  .dn-btn-primary { background: var(--dn-ink); color: #f7f5ef; }
  .dn-btn-primary:hover { background: var(--dn-ink-2); }
  .dn-btn-gold { background: var(--dn-gold); color: #ffffff; }
  .dn-btn-outline { background: transparent; color: var(--dn-ink); border: 1px solid var(--dn-line); }
  .dn-btn-block { width: 100%; }
  .dn-btn[disabled] { opacity: .45; cursor: not-allowed; }

  .dn-pill { font-size: 10.5px; padding: 3px 9px; border-radius: 100px; font-weight: 700; display: inline-block; white-space: nowrap; }
  .dn-pill-pending { background: var(--dn-amber-soft); color: var(--dn-amber); }
  .dn-pill-approved { background: var(--dn-green-soft); color: var(--dn-green); }
  .dn-pill-rejected { background: var(--dn-red-soft); color: var(--dn-red); }
  .dn-pill-funded { background: #e6ecf3; color: var(--dn-ink-2); }
  .dn-pill-open { background: var(--dn-green-soft); color: var(--dn-green); }

  .dn-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .dn-row h3 { flex: 1; min-width: 0; }
  .dn-list-item {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 11px 0; border-bottom: 1px solid var(--dn-line);
    gap: 8px; flex-wrap: wrap;
  }
  .dn-list-item:last-child { border-bottom: none; }
  .dn-list-item > div:last-child { text-align: left; margin-right: auto; }

  .dn-num { direction: ltr; display: inline-block; font-weight: 700; }
  .dn-muted { color: var(--dn-muted); font-size: 12px; }

  .dn-empty {
    text-align: center; padding: 26px 12px; color: var(--dn-muted); font-size: 13px;
    border: 1px dashed var(--dn-line); border-radius: 12px;
  }

  .dn-wallet-box {
    background: linear-gradient(135deg, var(--dn-ink) 0%, #1c2540 100%);
    color: #f1f2f6; border-radius: 14px; padding: 16px; margin-bottom: 14px;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  }
  .dn-wallet-icon {
    width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--dn-gold);
  }
  .dn-wallet-info { flex: 1; min-width: 120px; }
  .dn-wallet-box .dn-wallet-label { font-size: 11.5px; color: #b6bac6; margin-bottom: 4px; }
  .dn-wallet-box .dn-wallet-amount { font-size: 19px; font-weight: 700; direction: ltr; }
  .dn-wallet-box .dn-btn { white-space: nowrap; }

  .dn-progress-track { background: #e6e2d3; border-radius: 100px; height: 7px; overflow: hidden; margin-top: 8px; }
  .dn-progress-fill { background: var(--dn-gold); height: 100%; border-radius: 100px; }

  .dn-tabs {
    display: flex; gap: 2px; margin-bottom: 14px; border-bottom: 1px solid var(--dn-line);
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .dn-tabs::-webkit-scrollbar { display: none; }
  .dn-tab { padding: 10px 12px; font-size: 13px; color: var(--dn-muted); border-bottom: 2px solid transparent; white-space: nowrap; flex-shrink: 0; }
  .dn-tab.active { color: var(--dn-ink); font-weight: 700; border-bottom-color: var(--dn-gold); }

  /* ---- تب‌های چیپ‌مانند برای پنل صندوق (بدون اسکرول مخفی، قابل شکستن به چند ردیف) ---- */
  .dn-tabs-chip {
    flex-wrap: wrap; overflow: visible; border-bottom: none; gap: 6px; margin-bottom: 16px;
  }
  .dn-tabs-chip .dn-tab {
    background: var(--dn-gold-soft); color: var(--dn-ink-2); border-radius: 9px;
    padding: 8px 12px; font-size: 12.5px; font-weight: 600; border-bottom: none;
  }
  .dn-tabs-chip .dn-tab.active { background: var(--dn-gold); color: #fff; }

  /* ---- عناوین بخش داخل پنل صندوق ---- */
  .dn-section-title {
    font-size: 13.5px; font-weight: 700; color: var(--dn-ink); margin: 18px 0 8px;
    display: flex; align-items: center; gap: 6px;
  }
  .dn-section-title:first-child { margin-top: 0; }

  /* ---- جدول‌های گزارشی (گردش حساب، سررسیدها، لیست اسناد) ---- */
  .dn-table-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border: 1px solid var(--dn-line); border-radius: 12px; margin-bottom: 14px; background: #fff;
  }
  .dn-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 460px; }
  .dn-table th {
    background: var(--dn-gold-soft); color: var(--dn-ink-2); font-weight: 700; text-align: right;
    padding: 10px 10px; white-space: nowrap; border-bottom: 1px solid var(--dn-line);
  }
  .dn-table td {
    padding: 10px 10px; border-bottom: 1px solid var(--dn-line); vertical-align: middle;
  }
  .dn-table tbody tr:last-child td { border-bottom: none; }
  .dn-table tbody tr:nth-child(even) { background: #fbfbfc; }
  .dn-table td.dn-num, .dn-table th.dn-num-col { text-align: left; }
  .dn-table td.dn-num { display: table-cell; }
  .dn-table .dn-cell-title { font-weight: 700; white-space: nowrap; }
  .dn-table .dn-cell-sub { font-size: 11px; color: var(--dn-muted); display: block; margin-top: 2px; white-space: normal; }
  .dn-table-scroll-hint { font-size: 11px; color: var(--dn-muted); text-align: center; margin: -8px 0 14px; }

  /* ---- نوار بالای هر بخش: دکمه‌ی منو + عنوان صفحه‌ی فعال ---- */
  .dn-navbar {
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  }
  .dn-menu-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--dn-gold-soft); color: var(--dn-ink);
    border-radius: 10px; padding: 8px 12px; min-height: 38px;
    font-size: 12.5px; font-weight: 700; flex-shrink: 0;
  }
  .dn-menu-btn .dn-menu-icon { display: inline-flex; line-height: 1; }
  .dn-navbar-title { font-size: 14px; font-weight: 700; color: var(--dn-ink); }

  /* ---- ساید‌بار (منوی کشویی، قابل کلپس) ---- */
  .dn-sidebar-overlay {
    display: none; position: absolute; inset: 0; background: rgba(12,16,28,0.5); z-index: 55;
  }
  .dn-sidebar-overlay.show { display: block; }
  .dn-sidebar {
    position: absolute; top: 0; right: 0; height: 100%; width: 82%; max-width: 300px;
    background: #fff; box-shadow: -8px 0 28px rgba(0,0,0,.16);
    border-radius: 16px 0 0 16px;
    transform: translateX(100%); transition: transform .25s ease;
    display: flex; flex-direction: column; overflow-y: auto;
  }
  .dn-sidebar-overlay.show .dn-sidebar { transform: translateX(0); }
  .dn-sidebar-header {
    padding: 16px; border-bottom: 1px solid var(--dn-line);
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
  }
  .dn-sidebar-header .dn-sidebar-title { font-weight: 700; font-size: 14px; color: var(--dn-ink); }
  .dn-sidebar-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    background: var(--dn-gold-soft); color: var(--dn-ink-2); padding: 0; border-radius: 8px;
  }
  .dn-sidebar-nav { padding: 8px; }
  .dn-nav-item {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 10px 10px; border-radius: 10px; font-size: 13.5px; color: var(--dn-ink-2);
    text-align: right; background: transparent; margin-bottom: 2px; font-weight: 600;
  }
  .dn-nav-item-inner { display: flex; align-items: center; gap: 10px; }
  .dn-nav-icon {
    width: 32px; height: 32px; border-radius: 9px; background: var(--dn-gold-soft); color: var(--dn-ink-2);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s, color .15s;
  }
  .dn-nav-item.active { background: var(--dn-gold-soft); color: var(--dn-gold); }
  .dn-nav-item.active .dn-nav-icon { background: var(--dn-gold); color: #fff; }
  .dn-nav-item .dn-nav-caret { font-size: 11px; color: var(--dn-muted); transition: transform .15s; }
  .dn-nav-item.expanded .dn-nav-caret { transform: rotate(90deg); }
  .dn-nav-children {
    max-height: 0; overflow: hidden; transition: max-height .2s ease;
    padding-right: 15px; margin-right: 15px; border-right: 2px solid var(--dn-line);
  }
  .dn-nav-children.open { max-height: 400px; }
  .dn-nav-child {
    display: block; width: 100%; text-align: right; padding: 10px 12px; border-radius: 9px;
    font-size: 12.5px; color: var(--dn-ink-2); background: transparent; margin: 2px 0;
  }
  .dn-nav-child.active { background: var(--dn-gold); color: #fff; font-weight: 700; }

  .dn-toast {
    position: fixed; top: env(safe-area-inset-top, 14px); left: 50%; transform: translateX(-50%);
    background: var(--dn-ink); color: #f7f5ef; padding: 10px 18px; border-radius: 100px;
    font-size: 12.5px; box-shadow: 0 4px 14px rgba(0,0,0,.18); z-index: 50;
    opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
    max-width: 90%; text-align: center;
  }
  .dn-toast.show { opacity: 1; transform: translateX(-50%) translateY(4px); }

  .dn-modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(12,16,28,0.55);
    align-items: flex-end; justify-content: center; z-index: 40;
  }
  .dn-modal-overlay.show { display: flex; }
  .dn-modal {
    background: #fff; border-radius: 20px 20px 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0px));
    width: 100%; max-width: 480px;
    box-shadow: 0 -4px 30px rgba(0,0,0,.18);
  }
  .dn-modal::before {
    content: ""; display: block; width: 36px; height: 4px; border-radius: 100px;
    background: var(--dn-line); margin: 0 auto 14px;
  }

  @media (min-width: 481px) {
    #dn-app { border-radius: 16px; margin: 24px auto; }
    .dn-modal-overlay { align-items: center; }
    .dn-modal { border-radius: 14px; max-width: 380px; padding: 22px; }
    .dn-modal::before { display: none; }
  }


/* ============================================================
   Responsive issuer forms and support pages
============================================================ */
#dn-app .dn-grid2 > *,
#dn-app .dn-field,
#dn-app .dn-attach-box {
  min-width: 0;
}

#dn-app input,
#dn-app select,
#dn-app textarea {
  max-width: 100%;
}

#dn-app input[type="file"] {
  direction: rtl;
  text-align: right;
  width: 100%;
  min-width: 0;
  padding: 8px;
  font-size: 12px;
  overflow: hidden;
}

.dn-attach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.dn-attach-grid .dn-attach-box {
  margin-bottom: 0;
  height: 100%;
}

.dn-support-page {
  width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  .dn-grid2 {
    grid-template-columns: 1fr;
  }

  .dn-support-actions {
    flex-direction: column;
  }

  .dn-support-actions .dn-btn {
    width: 100%;
  }

  .dn-list-item > div:last-child {
    width: 100%;
    margin-right: 0;
    text-align: right;
  }
}

@media (min-width: 768px) {
  #dn-app.dn-role-investor,
  #dn-app.dn-role-issuer {
    width: 100%;
    max-width: 480px;
    min-height: auto;
  }

  #dn-app.dn-role-investor .dn-body,
  #dn-app.dn-role-issuer .dn-body {
    padding: 16px;
  }

  #dn-app.dn-role-issuer .dn-attach-grid {
    grid-template-columns: 1fr;
  }

  #dn-app.dn-role-issuer .dn-support-page {
    max-width: none;
  }
}


/* ============================================================
   Valora 1.5 — persistent profile header, stable loading states
   and normalized responsive tables
============================================================ */
.dn-topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  box-shadow: 0 6px 18px rgba(18, 24, 43, .12);
}
.dn-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.dn-topbar-row .dn-brand { margin-bottom: 0; min-width: 0; }
.dn-user-profile-slot { display: none; position: relative; min-width: 0; }
.dn-user-profile-slot.show { display: block; }
.dn-profile-menu-wrap { position: relative; }
.dn-profile-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 210px;
  min-height: 40px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  text-align: right;
}
.dn-profile-trigger:hover { background: rgba(255,255,255,.14); }
.dn-profile-trigger:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.dn-profile-avatar {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--dn-gold);
  color: #fff;
}
.dn-profile-avatar-large { width: 38px; height: 38px; border-radius: 11px; }
.dn-profile-summary { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dn-profile-summary strong {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
}
.dn-profile-summary small {
  margin-top: 2px;
  color: #cfd3dc;
  font-size: 10.5px;
  letter-spacing: .2px;
}
.dn-profile-caret { font-size: 13px; color: #cfd3dc; }
.dn-profile-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  width: min(270px, calc(100vw - 32px));
  padding: 10px;
  color: var(--dn-ink);
  background: #fff;
  border: 1px solid var(--dn-line);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(18,24,43,.22);
}
.dn-profile-popover.show { display: block; }
.dn-profile-popover-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 11px;
  border-bottom: 1px solid var(--dn-line);
}
.dn-profile-popover-head > div { display: flex; flex-direction: column; min-width: 0; }
.dn-profile-popover-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.dn-profile-popover-head span:not(.dn-profile-avatar) {
  margin-top: 2px;
  color: var(--dn-muted);
  font-size: 11.5px;
}
.dn-profile-logout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  color: var(--dn-red);
  background: var(--dn-red-soft);
  border-radius: 10px;
  font-weight: 700;
}
.dn-profile-logout:hover { filter: brightness(.98); }

.dn-initial-loading,
.dn-connection-error {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  color: var(--dn-muted);
}
.dn-connection-error {
  margin: 20px 0;
  padding: 24px;
  min-height: auto;
  background: #fff;
  border: 1px solid var(--dn-red-soft);
  border-radius: 14px;
}
.dn-connection-error strong { color: var(--dn-red); }
.dn-connection-error p { margin: 0; font-size: 12.5px; }
.dn-spinner {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  border: 2px solid rgba(117,124,140,.28);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: dn-spin .7s linear infinite;
}
@keyframes dn-spin { to { transform: rotate(360deg); } }
.dn-loading { cursor: wait !important; }

.dn-table-wrap {
  position: relative;
  max-width: 100%;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}
.dn-table {
  direction: rtl;
  table-layout: auto;
}
.dn-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 var(--dn-line);
}
.dn-table th,
.dn-table td {
  text-align: right;
  line-height: 1.55;
}
.dn-table td {
  overflow-wrap: normal;
  word-break: normal;
}
.dn-table .dn-num,
.dn-table .dn-phone,
.dn-table .dn-date {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  text-align: left;
}
.dn-table button,
.dn-table .dn-btn { white-space: nowrap; }
.dn-table tbody:empty::after {
  content: "اطلاعاتی یافت نشد";
  display: table-cell;
  padding: 24px 12px;
  color: var(--dn-muted);
  text-align: center;
}
.dn-empty {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dn-btn:focus-visible,
.dn-field input:focus-visible,
.dn-field select:focus-visible {
  outline: 2px solid var(--dn-gold);
  outline-offset: 2px;
}
.dn-btn[disabled],
.dn-field input[disabled],
.dn-field select[disabled] {
  cursor: not-allowed;
  opacity: .55;
}

@media (max-width: 390px) {
  .dn-topbar { padding-inline: 12px; }
  .dn-profile-summary { display: none; }
  .dn-profile-trigger { padding: 5px; }
  .dn-profile-popover { left: -4px; }
  .dn-brand .dn-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dn-spinner { animation-duration: 1.6s; }
  #dn-app *, #dn-app *::before, #dn-app *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.dn-onboarding-card {
  max-width: 390px;
  margin: 18px auto;
}
.dn-onboarding-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.dn-onboarding-heading h3 { margin: 0 0 3px; }
.dn-onboarding-heading .dn-sub { margin: 0; }
.dn-phone {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}


/* ===== Valora 1.6.0: wallet, trades and consistent tables ===== */
.dn-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.dn-page-heading h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}
.dn-page-heading p {
  margin: 4px 0 0;
  color: var(--dn-muted);
  font-size: 12px;
}
.dn-wallet-actions,
.dn-inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dn-wallet-box .dn-btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.dn-wallet-dashboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  margin-bottom: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--dn-ink), #273454);
  border-radius: 16px;
}
.dn-wallet-dashboard-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.dn-wallet-dashboard-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--dn-gold);
  background: rgba(255,255,255,.11);
  border-radius: 12px;
}
.dn-wallet-dashboard-main span {
  display: block;
  color: #c9cfdb;
  font-size: 11.5px;
}
.dn-wallet-dashboard-main strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
}
.dn-wallet-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.dn-wallet-kpis .dn-card {
  min-width: 0;
  margin: 0;
}
.dn-wallet-kpis strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}
.dn-trade-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dn-readonly-value {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 11px;
  color: var(--dn-ink-2);
  background: #f8f9fb;
  border: 1px solid var(--dn-line);
  border-radius: 10px;
}
.dn-credit-text { color: var(--dn-green) !important; }
.dn-debit-text { color: var(--dn-red) !important; }
.dn-trade-card { overflow: hidden; }
.dn-trade-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.dn-trade-metrics > div {
  min-width: 0;
  padding: 10px;
  background: #f8f9fb;
  border: 1px solid var(--dn-line);
  border-radius: 10px;
}
.dn-trade-metrics span {
  display: block;
  color: var(--dn-muted);
  font-size: 10.5px;
}
.dn-trade-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
}
.dn-trade-stage {
  margin-top: 8px;
  color: var(--dn-muted);
  font-size: 11.5px;
}
.dn-status-banner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
}
.dn-status-success {
  color: var(--dn-green);
  background: var(--dn-green-soft);
}
.dn-status-warning {
  color: var(--dn-amber);
  background: var(--dn-amber-soft);
}
.dn-status-error {
  color: var(--dn-red);
  background: var(--dn-red-soft);
}
.dn-table-centered th,
.dn-table-centered td {
  text-align: center !important;
  vertical-align: middle;
}
.dn-table-centered .dn-cell-title,
.dn-table-centered .dn-cell-sub {
  text-align: center;
}
.dn-table-centered .dn-num,
.dn-table-centered .dn-phone,
.dn-table-centered .dn-date {
  text-align: center !important;
}
.dn-table th,
.dn-table td {
  vertical-align: middle;
}
.dn-table th {
  white-space: nowrap;
}
.dn-table td {
  max-width: 280px;
}
.dn-table .dn-cell-title {
  display: block;
  font-weight: 700;
}
.dn-table .dn-cell-sub {
  display: block;
  margin-top: 3px;
  color: var(--dn-muted);
  font-size: 10.5px;
}
.dn-withdrawal-card .dn-inline-actions .dn-btn {
  flex: 1 1 150px;
}

@media (max-width: 480px) {
  .dn-wallet-dashboard {
    align-items: stretch;
    flex-direction: column;
  }
  .dn-wallet-dashboard > .dn-btn { width: 100%; }
  .dn-wallet-actions { width: 100%; }
  .dn-wallet-actions .dn-btn { flex: 1; padding-inline: 10px; }
  .dn-trade-metrics { grid-template-columns: 1fr; }
  .dn-trade-kpis { grid-template-columns: 1fr 1fr; }
  .dn-inline-actions { flex-direction: column; }
  .dn-inline-actions .dn-btn { width: 100%; }
}


/* Global table alignment audit */
#dn-app .dn-table th,
#dn-app .dn-table td {
  text-align: center;
  vertical-align: middle;
}
#dn-app .dn-table .dn-num,
#dn-app .dn-table .dn-phone,
#dn-app .dn-table .dn-date {
  text-align: center;
}
#dn-app .dn-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}


/* ============================================================
   v1.7.0 — Minimal user portal refinement
   ============================================================ */
:root {
  --dn-surface-soft: #f7f8fa;
  --dn-border-soft: rgba(15, 23, 42, 0.09);
  --dn-shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.055);
}

body {
  background:
    radial-gradient(circle at 100% 0%, rgba(184, 137, 43, 0.055), transparent 26rem),
    #f6f7f9;
}

.dn-card {
  border-color: var(--dn-border-soft);
  border-radius: 16px;
  box-shadow: var(--dn-shadow-soft);
}

.dn-btn {
  min-height: 42px;
  border-radius: 11px;
  font-weight: 750;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.dn-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.dn-btn:active:not(:disabled) {
  transform: translateY(0);
}

.dn-field input,
.dn-field select,
.dn-field textarea {
  border-radius: 11px;
  border-color: rgba(15, 23, 42, 0.14);
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.dn-field input:focus,
.dn-field select:focus,
.dn-field textarea:focus {
  border-color: rgba(173, 126, 35, 0.72);
  box-shadow: 0 0 0 3px rgba(184, 137, 43, 0.12);
  outline: none;
}

.dn-table-wrap {
  border: 1px solid var(--dn-border-soft);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}

.dn-table thead th {
  background: #f7f8fa;
  color: #475569;
  font-size: 11px;
}

.dn-table tbody tr {
  transition: background 120ms ease;
}

.dn-table tbody tr:hover {
  background: #fafbfc;
}

.dn-wallet-dashboard {
  border-radius: 17px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.dn-wallet-kpis-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dn-wallet-kpis .dn-card {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.dn-iban-input {
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.dn-onboarding-card {
  position: relative;
  overflow: hidden;
}

.dn-onboarding-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--dn-gold), transparent);
  opacity: 0.75;
}

@media (max-width: 520px) {
  .dn-wallet-kpis-3 {
    grid-template-columns: 1fr;
  }

  .dn-wallet-dashboard {
    align-items: stretch;
  }

  .dn-wallet-dashboard > .dn-inline-actions {
    width: 100%;
  }

  .dn-wallet-dashboard > .dn-inline-actions .dn-btn {
    flex: 1;
  }
}


/* v1.8.2 — stable, accessible support ticket interactions */
.dn-ticket-list-card {
  appearance: none;
  border: 1px solid var(--dn-line, #e5e7eb);
  color: inherit;
  font: inherit;
}
.dn-ticket-list-card:hover,
.dn-ticket-list-card:focus-visible {
  border-color: var(--dn-gold, #b99345);
  box-shadow: 0 8px 24px rgba(20, 24, 32, 0.08);
  outline: none;
}
.dn-account-search-option:hover,
.dn-account-search-option:focus-visible {
  background: var(--dn-gold-soft, #f7f1e6) !important;
  outline: none;
}
.dn-account-picker input[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}


/* ============================================================
   Valora 1.9.1 — light product redesign
   Modern monetary layout, investor wallet and dashboard charts
   ============================================================ */

/* The unit is an independent flex item and is always placed visually
   on the left side of the numeric value. */
.dn-money {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: .34em;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  max-width: 100%;
}
.dn-money-unit {
  order: 1;
  color: currentColor;
  font-size: .68em;
  font-weight: 600;
  opacity: .72;
  line-height: 1;
}
.dn-money-value {
  order: 2;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.dn-num {
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}
.dn-num .dn-money { vertical-align: baseline; }

#dn-app {
  --dn-radius-sm: 12px;
  --dn-radius-md: 16px;
  --dn-radius-lg: 21px;
  --dn-shadow-card: 0 10px 30px rgba(15, 23, 42, .055);
  --dn-shadow-raised: 0 18px 46px rgba(15, 23, 42, .10);
  --dn-chart-active: #2563eb;
  --dn-chart-collecting: #f59e0b;
  --dn-chart-settled: #10b981;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,249,252,.98));
}
#dn-app.dn-role-investor {
  --dn-gold: #0f8a69;
  --dn-gold-soft: #e8f7f2;
}
#dn-app.dn-role-issuer {
  --dn-gold: #b76616;
  --dn-gold-soft: #fff4e8;
}
body {
  background:
    radial-gradient(circle at 12% -12%, rgba(15, 138, 105, .11), transparent 28rem),
    radial-gradient(circle at 96% 8%, rgba(183, 102, 22, .08), transparent 24rem),
    #edf1f5;
}
.dn-topbar {
  background:
    radial-gradient(circle at 0 0, rgba(255,255,255,.10), transparent 15rem),
    linear-gradient(135deg, #111827, #1f2937);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.dn-brand-mark {
  box-shadow: 0 7px 20px rgba(0,0,0,.2);
}
.dn-body { padding: 18px; }
.dn-card {
  border-color: rgba(15,23,42,.075);
  border-radius: var(--dn-radius-md);
  box-shadow: var(--dn-shadow-card);
}
.dn-card:hover {
  border-color: rgba(15,23,42,.11);
}
.dn-btn {
  border-radius: var(--dn-radius-sm);
  letter-spacing: -.01em;
}
.dn-btn-primary {
  background: linear-gradient(135deg, #111827, #273449);
  box-shadow: 0 7px 18px rgba(15,23,42,.14);
}
.dn-btn-gold {
  background: linear-gradient(135deg, var(--dn-gold), color-mix(in srgb, var(--dn-gold) 82%, #0f172a));
  box-shadow: 0 7px 18px color-mix(in srgb, var(--dn-gold) 22%, transparent);
}
.dn-field input,
.dn-field select,
.dn-field textarea {
  min-height: 44px;
  border-radius: var(--dn-radius-sm);
  background: rgba(255,255,255,.96);
}
.dn-navbar {
  padding: 7px 8px;
  border: 1px solid rgba(15,23,42,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 5px 18px rgba(15,23,42,.035);
}
.dn-menu-btn { border-radius: 10px; }
.dn-page-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--dn-gold);
  font-size: 10.5px;
  font-weight: 800;
}
.dn-page-heading h2 {
  font-size: 20px;
  letter-spacing: -.025em;
}
.dn-dashboard-live,
.dn-wallet-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  color: var(--dn-green);
  background: var(--dn-green-soft);
  border: 1px solid rgba(13,138,86,.12);
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 750;
  white-space: nowrap;
}
.dn-dashboard-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(13,138,86,.10);
}

/* Compact wallet shown above the investor navigation */
.dn-wallet-box {
  position: relative;
  overflow: hidden;
  align-items: center;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--dn-radius-lg);
  background:
    radial-gradient(circle at 8% 10%, rgba(255,255,255,.14), transparent 10rem),
    linear-gradient(135deg, #101827, #223047);
  box-shadow: 0 18px 40px rgba(15,23,42,.16);
}
.dn-wallet-box::after {
  content: "";
  position: absolute;
  left: -38px;
  bottom: -62px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  pointer-events: none;
}
.dn-wallet-info,
.dn-wallet-actions,
.dn-wallet-icon { position: relative; z-index: 1; }
.dn-wallet-box .dn-wallet-amount {
  margin-top: 2px;
  font-size: 21px;
  line-height: 1.35;
}
.dn-wallet-box .dn-wallet-amount .dn-money-unit {
  color: #d5dae3;
}
.dn-wallet-box .dn-wallet-actions {
  margin-right: auto;
}

/* Wallet page */
.dn-wallet-page-heading { margin-bottom: 15px; }
.dn-wallet-visual-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 176px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 23px;
  background:
    linear-gradient(132deg, #0d1728 0%, #1b2b42 58%, #173d38 100%);
  box-shadow: 0 23px 54px rgba(15,23,42,.18);
}
.dn-wallet-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.dn-wallet-orb-one {
  width: 190px;
  height: 190px;
  left: -72px;
  top: -96px;
  background: rgba(16,185,129,.14);
  filter: blur(1px);
}
.dn-wallet-orb-two {
  width: 130px;
  height: 130px;
  right: 44%;
  bottom: -94px;
  border: 1px solid rgba(255,255,255,.08);
}
.dn-wallet-balance-copy { min-width: 0; }
.dn-wallet-balance-copy > span {
  display: block;
  color: #bec8d8;
  font-size: 11.5px;
}
.dn-wallet-balance-copy > small {
  display: block;
  margin-top: 5px;
  color: #9ba8ba;
  font-size: 10.5px;
  line-height: 1.6;
}
.dn-wallet-balance {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: clamp(22px, 6vw, 30px) !important;
  line-height: 1.35;
}
.dn-wallet-balance .dn-money-unit {
  color: #cdd5e0;
  font-size: .56em;
}
.dn-wallet-hero-actions {
  position: relative;
  z-index: 1;
  justify-content: flex-end;
}
.dn-wallet-visual-card .dn-btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.055);
}
.dn-wallet-visual-card .dn-btn-outline:hover {
  background: rgba(255,255,255,.10);
}
.dn-wallet-stat-card {
  position: relative;
  display: grid !important;
  grid-template-columns: 36px minmax(0,1fr);
  align-items: center;
  gap: 10px !important;
  min-height: 100px !important;
  padding: 14px;
}
.dn-wallet-stat-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--dn-ink-2);
  background: #f2f5f8;
}
.dn-wallet-stat-credit .dn-wallet-stat-icon {
  color: var(--dn-green);
  background: var(--dn-green-soft);
}
.dn-wallet-stat-debit .dn-wallet-stat-icon {
  color: var(--dn-red);
  background: var(--dn-red-soft);
}
.dn-wallet-stat-reserved .dn-wallet-stat-icon {
  color: var(--dn-amber);
  background: var(--dn-amber-soft);
}
.dn-wallet-stat-card strong {
  overflow-wrap: normal;
  white-space: nowrap;
  font-size: 13.5px;
}
.dn-withdrawal-card {
  border-top: 3px solid var(--dn-gold);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--dn-gold-soft) 38%, #fff), #fff 30%);
}

/* Investor dashboard */
.dn-investor-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 11px;
}
.dn-investor-kpi-card {
  position: relative;
  min-height: 118px;
  margin: 0;
  padding: 14px;
  overflow: hidden;
}
.dn-investor-kpi-card p {
  max-width: calc(100% - 34px);
  margin: 0 0 12px;
  color: var(--dn-muted);
  font-size: 11px;
}
.dn-investor-kpi-card > strong {
  display: block;
  font-size: 14px;
}
.dn-kpi-icon-soft {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dn-gold);
  background: var(--dn-gold-soft);
  border-radius: 10px;
}
.dn-kpi-profit > strong { color: var(--dn-green); }
.dn-status-strip {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.07);
  border-radius: 14px;
  background: rgba(15,23,42,.07);
}
.dn-status-strip > div {
  display: grid;
  grid-template-columns: 8px auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 7px;
  padding: 10px;
  background: #fff;
}
.dn-status-strip b { font-size: 14px; }
.dn-status-strip small {
  grid-column: 2;
  color: var(--dn-muted);
  font-size: 9.5px;
  white-space: nowrap;
}
.dn-status-dot {
  grid-row: 1 / span 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dn-status-dot-active { background: var(--dn-chart-active); }
.dn-status-dot-collecting { background: var(--dn-chart-collecting); }
.dn-status-dot-settled { background: var(--dn-chart-settled); }
.dn-investor-chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.dn-chart-card {
  margin: 0;
  min-width: 0;
}
.dn-chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.dn-chart-heading h3,
.dn-chart-heading p { margin: 0; }
.dn-chart-heading h3 { font-size: 13.5px; }
.dn-chart-heading p {
  margin-top: 2px;
  color: var(--dn-muted);
  font-size: 10px;
}
.dn-chart-heading > svg { color: var(--dn-gold); }
.dn-chart-empty {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: var(--dn-muted);
  border: 1px dashed var(--dn-line);
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}
.dn-investor-donut-layout {
  display: grid;
  grid-template-columns: 122px minmax(0,1fr);
  align-items: center;
  gap: 14px;
}
.dn-investor-donut {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  padding: 13px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.dn-investor-donut > div {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  color: var(--dn-ink);
  background: #fff;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 5px 16px rgba(15,23,42,.08);
}
.dn-investor-donut strong { font-size: 18px; }
.dn-investor-donut span {
  color: var(--dn-muted);
  font-size: 9.5px;
}
.dn-chart-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dn-chart-legend > div {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.dn-chart-legend span {
  color: var(--dn-muted);
  font-size: 10px;
}
.dn-chart-legend strong { font-size: 10.5px; }
.dn-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dn-legend-active { background: var(--dn-chart-active); }
.dn-legend-collecting { background: var(--dn-chart-collecting); }
.dn-legend-settled { background: var(--dn-chart-settled); }
.dn-investor-bars {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.dn-investor-bar-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.dn-investor-bar-meta > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dn-investor-bar-meta b { font-size: 10.5px; }
.dn-investor-bar-meta small {
  overflow: hidden;
  color: var(--dn-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dn-investor-bar-meta strong { font-size: 10.5px; }
.dn-investor-bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 100px;
  background: #edf1f5;
}
.dn-investor-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dn-gold), #31b494);
}
.dn-section-title-modern {
  align-items: center;
  gap: 9px;
  margin-top: 21px;
}
.dn-section-title-modern > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--dn-gold);
  background: var(--dn-gold-soft);
  border-radius: 10px;
}
.dn-section-title-modern > div {
  display: flex;
  flex-direction: column;
}
.dn-section-title-modern small {
  color: var(--dn-muted);
  font-size: 9.5px;
  font-weight: 500;
}
.dn-investment-stage-card {
  overflow: hidden;
  padding: 15px;
}
.dn-investment-stage-head h3,
.dn-investment-stage-head p { margin: 0; }
.dn-investment-stage-head p {
  margin-top: 3px;
  color: var(--dn-muted);
  font-size: 10px;
}
.dn-stage-pill {
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 100px;
  font-size: 9.5px;
  font-weight: 700;
}
.dn-stage-active { color: #1d4ed8; background: #eff6ff; }
.dn-stage-collecting { color: #a16207; background: #fffbeb; }
.dn-stage-settled { color: var(--dn-green); background: var(--dn-green-soft); }
.dn-stage-progress {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 4px;
  margin: 12px 0;
}
.dn-stage-progress span {
  height: 5px;
  border-radius: 100px;
  background: #e7ebf0;
}
.dn-stage-progress span.done {
  background: linear-gradient(90deg, var(--dn-gold), #3db393);
}
.dn-stage-metrics {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
.dn-stage-metrics > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 11px;
  background: #f8fafb;
}
.dn-stage-metrics span {
  display: block;
  margin-bottom: 4px;
  color: var(--dn-muted);
  font-size: 9.5px;
}
.dn-stage-metrics strong { font-size: 11px; }
.dn-empty-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.dn-empty-modern p { margin: 0; font-size: 10.5px; }
.dn-empty-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  color: var(--dn-gold);
  background: var(--dn-gold-soft);
  border-radius: 13px;
}

/* Issuer portal receives the same restrained visual system without
   changing its workflow or mobile-first width. */
#dn-app.dn-role-issuer .dn-card {
  background:
    linear-gradient(180deg, rgba(255,250,245,.56), #fff 26%);
}
#dn-app.dn-role-issuer .dn-attach-box {
  border-radius: 13px;
  background: rgba(255,248,240,.62);
}
#dn-app.dn-role-issuer .dn-section-title {
  color: #7c3f0b;
}

@media (min-width: 421px) {
  .dn-investor-chart-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 420px) {
  .dn-body { padding: 14px; }
  .dn-investor-kpi-grid { grid-template-columns: 1fr 1fr; }
  .dn-investor-kpi-card { min-height: 110px; padding: 12px; }
  .dn-investor-kpi-card > strong { font-size: 12.5px; }
  .dn-investor-donut-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .dn-chart-legend { width: 100%; }
  .dn-status-strip small { white-space: normal; }
  .dn-wallet-visual-card {
    min-height: 0;
    padding: 18px;
  }
  .dn-wallet-hero-actions {
    flex-direction: row;
  }
  .dn-wallet-hero-actions .dn-btn {
    width: auto;
    flex: 1;
  }
  .dn-wallet-stat-card {
    grid-template-columns: 34px minmax(0,1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dn-investor-bar-track span,
  .dn-stage-progress span {
    transition: none !important;
  }
}

/* ============================================================
   Valora 1.9.1 — monetary alignment and compact-card overflow fix
   ============================================================ */

/* Keep the currency unit and value on one visual line. The unit is the
   first LTR flex item, so it remains on the left side of the number. */
.dn-money {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: .34em;
  direction: ltr !important;
  unicode-bidi: isolate;
  white-space: nowrap !important;
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
  line-height: 1.15;
}
.dn-money > .dn-money-unit,
.dn-money > .dn-money-value {
  display: inline-block !important;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}
.dn-money > .dn-money-unit {
  order: 1;
}
.dn-money > .dn-money-value {
  order: 2;
  min-width: 0;
  text-align: left;
}
.dn-money[data-money-size="long"] .dn-money-value {
  letter-spacing: -.035em;
}
.dn-money[data-money-size="xlong"] .dn-money-value {
  letter-spacing: -.055em;
}

/* Generic descendant span rules in old cards must not turn the money
   component into stacked block elements. */
.dn-wallet-dashboard-main .dn-money,
.dn-wallet-balance-copy .dn-money,
.dn-wallet-stat-card .dn-money,
.dn-trade-metrics .dn-money,
.dn-stage-metrics .dn-money,
.dn-investor-kpi-card .dn-money {
  display: inline-flex !important;
}
.dn-wallet-dashboard-main .dn-money > span,
.dn-wallet-balance-copy .dn-money > span,
.dn-wallet-stat-card .dn-money > span,
.dn-trade-metrics .dn-money > span,
.dn-stage-metrics .dn-money > span,
.dn-investor-kpi-card .dn-money > span {
  display: inline-block !important;
  margin: 0 !important;
}

/* Wallet hero */
.dn-wallet-balance-copy {
  min-width: 0;
}
.dn-wallet-balance {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}
.dn-wallet-balance .dn-money {
  width: auto;
  max-width: 100%;
}
.dn-wallet-balance .dn-money-value {
  font-size: clamp(19px, 5.2vw, 28px);
}
.dn-wallet-balance .dn-money-unit {
  font-size: clamp(9px, 2.2vw, 12px);
}
.dn-wallet-balance .dn-money[data-money-size="long"] .dn-money-value {
  font-size: clamp(17px, 4.6vw, 24px);
}
.dn-wallet-balance .dn-money[data-money-size="xlong"] .dn-money-value {
  font-size: clamp(15px, 4.1vw, 21px);
}

/* Wallet KPI cards */
.dn-wallet-stat-card > div,
.dn-wallet-stat-card strong,
.dn-wallet-stat-card .dn-num {
  min-width: 0;
  max-width: 100%;
}
.dn-wallet-stat-card strong {
  overflow: visible;
}
.dn-wallet-stat-card .dn-money {
  width: 100%;
}
.dn-wallet-stat-card .dn-money-value {
  font-size: clamp(10px, 2.75vw, 13.5px);
}
.dn-wallet-stat-card .dn-money-unit {
  font-size: clamp(8px, 2vw, 10px);
}
.dn-wallet-stat-card .dn-money[data-money-size="long"] .dn-money-value {
  font-size: clamp(9px, 2.35vw, 11.5px);
}
.dn-wallet-stat-card .dn-money[data-money-size="xlong"] .dn-money-value {
  font-size: clamp(8px, 2vw, 10px);
}

/* Dashboard and trade cards */
.dn-investor-kpi-card > strong,
.dn-stage-metrics strong,
.dn-trade-metrics strong {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}
.dn-investor-kpi-card .dn-money,
.dn-stage-metrics .dn-money,
.dn-trade-metrics .dn-money {
  width: 100%;
}
.dn-investor-kpi-card .dn-money-value {
  font-size: clamp(10px, 3vw, 14px);
}
.dn-stage-metrics .dn-money-value,
.dn-trade-metrics .dn-money-value {
  font-size: clamp(9px, 2.6vw, 12px);
}
.dn-investor-kpi-card .dn-money-unit,
.dn-stage-metrics .dn-money-unit,
.dn-trade-metrics .dn-money-unit {
  font-size: clamp(8px, 2vw, 9.5px);
}
.dn-stage-metrics > div > span,
.dn-trade-metrics > div > span {
  display: block;
}
.dn-stage-metrics .dn-money > span,
.dn-trade-metrics .dn-money > span {
  display: inline-block !important;
}

/* On narrow screens, wallet KPI cards remain readable instead of forcing
   three undersized columns. */
@media (max-width: 560px) {
  .dn-wallet-kpis-3 {
    grid-template-columns: 1fr;
  }
  .dn-wallet-stat-card {
    min-height: 82px !important;
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .dn-wallet-stat-card .dn-money-value {
    font-size: clamp(12px, 4vw, 16px);
  }
  .dn-wallet-stat-card .dn-money-unit {
    font-size: 10px;
  }
}

/* ============================================================
   Valora 1.11.0 — security hardening and architecture refactor
============================================================ */
.dn-issuer-shell {
  width: 100%;
}

.dn-issuer-subnav {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  border: 1px solid rgba(22, 36, 58, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(21, 34, 54, 0.05);
}

.dn-issuer-subnav-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--dn-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.dn-issuer-subnav-item:hover {
  background: var(--dn-gold-soft);
  color: var(--dn-ink);
}

.dn-issuer-subnav-item.active {
  background: var(--dn-ink);
  color: #fff;
  box-shadow: 0 7px 16px rgba(24, 38, 60, 0.16);
}

.dn-issuer-subnav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dn-issuer-account-state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.dn-issuer-account-state.is-complete {
  color: var(--dn-green);
  background: var(--dn-green-soft);
}

.dn-issuer-account-state.is-incomplete {
  color: var(--dn-amber);
  background: var(--dn-amber-soft);
}

.dn-issuer-bank-card {
  border-top: 3px solid var(--dn-gold);
}

.dn-bank-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 14px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--dn-gold-soft);
  color: var(--dn-muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.dn-issuer-finance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.dn-issuer-finance-card {
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(22, 36, 58, 0.08);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(21, 34, 54, 0.05);
}

.dn-issuer-finance-card > span {
  display: block;
  margin-bottom: 8px;
  color: var(--dn-muted);
  font-size: 11.5px;
}

.dn-issuer-finance-card > strong {
  display: block;
  min-width: 0;
  color: var(--dn-ink);
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
}

.dn-issuer-finance-card.is-primary {
  border-color: rgba(24, 148, 117, .18);
  background: linear-gradient(145deg, rgba(232, 249, 243, .9), #fff);
}

.dn-issuer-finance-card.is-success {
  border-color: rgba(36, 161, 110, .16);
  background: linear-gradient(145deg, rgba(233, 249, 241, .9), #fff);
}

.dn-issuer-finance-table-wrap {
  margin-bottom: 20px;
}

.dn-issuer-finance-table {
  min-width: 1080px;
}

.dn-issuer-finance-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.dn-issuer-finance-table td {
  vertical-align: middle;
}

.dn-table-sub {
  display: block;
  margin-top: 4px;
  color: var(--dn-muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.dn-issuer-finance-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--dn-gold-soft);
  color: var(--dn-ink);
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.dn-loading-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 150px;
  border: 1px dashed rgba(22, 36, 58, 0.16);
  border-radius: 16px;
  color: var(--dn-muted);
  background: rgba(255, 255, 255, .72);
}

.dn-status-info {
  color: #176b87;
  background: #e9f6fb;
  border-color: rgba(23, 107, 135, .15);
}

.dn-ticket-file-field {
  padding: 10px 12px;
  border: 1px dashed rgba(22, 36, 58, .18);
  border-radius: 12px;
  background: #fafbfc;
}

.dn-ticket-file-field small {
  display: block;
  margin-top: 6px;
  color: var(--dn-muted);
  font-size: 10.5px;
}

.dn-ticket-attachments {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.dn-ticket-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  padding: 8px 9px;
  border: 1px solid rgba(22, 36, 58, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  color: var(--dn-ink);
  font-family: inherit;
  text-align: right;
  cursor: pointer;
}

.dn-ticket-attachment:hover {
  border-color: rgba(24, 148, 117, .36);
  background: #fff;
}

.dn-ticket-attachment:disabled {
  cursor: wait;
  opacity: .65;
}

.dn-ticket-attachment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--dn-gold-soft);
  color: var(--dn-gold);
}

.dn-ticket-attachment-copy {
  min-width: 0;
  flex: 1;
}

.dn-ticket-attachment-copy strong,
.dn-ticket-attachment-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dn-ticket-attachment-copy strong {
  font-size: 11.5px;
}

.dn-ticket-attachment-copy small {
  margin-top: 2px;
  color: var(--dn-muted);
  font-size: 9.5px;
}

.dn-ticket-message-text {
  white-space: pre-wrap;
  word-break: break-word;
}

@media (min-width: 720px) {
  .dn-issuer-finance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .dn-issuer-subnav {
    margin-inline: -2px;
    border-radius: 14px;
  }

  .dn-issuer-subnav-item {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .dn-issuer-finance-grid {
    grid-template-columns: 1fr;
  }

  .dn-page-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .dn-ticket-attachment {
    max-width: 100%;
  }
}


/* VALORA_ISSUER_NAV_VISIBILITY_V1
   Issuer desktop navigation uses the permanent right sidebar.
   Remove the duplicated horizontal navigation.
   Keep the compact menu trigger available on small screens. */

/* Horizontal issuer navigation + its scrollbar */
.dn-issuer-shell > .dn-issuer-subnav {
  display: none !important;
}

/* Desktop: right sidebar is enough */
@media (min-width: 769px) {
  .dn-issuer-shell > .dn-navbar {
    display: none !important;
  }
}

/* Mobile/tablet: keep the menu button for sidebar access */
@media (max-width: 768px) {
  .dn-issuer-shell > .dn-navbar {
    display: flex !important;
  }
}

/* VALORA_ISSUER_MENU_BUTTON_RESTORE_V1
   Keep only the issuer sidebar menu trigger.
   The duplicated horizontal navigation remains hidden. */

.dn-issuer-shell > .dn-navbar {
  display: flex !important;
  width: fit-content !important;
  min-height: 0 !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.dn-issuer-shell > .dn-navbar .dn-navbar-title {
  display: none !important;
}

.dn-issuer-shell > .dn-navbar .dn-menu-btn {
  display: inline-flex !important;
}

/* Horizontal duplicated issuer navigation stays removed */
.dn-issuer-shell > .dn-issuer-subnav {
  display: none !important;
}

/* VALORA_INVESTOR_CHART_LAYOUT_V1
   Investor portal has a compact max width.
   Portfolio charts must use the full available width instead of
   being forced into two undersized columns. */

#dn-app.dn-role-investor .dn-investor-chart-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
}

#dn-app.dn-role-investor .dn-investor-chart-grid > .dn-chart-card {
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden;
}

#dn-app.dn-role-investor .dn-investor-donut-layout {
  width: 100%;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 14px;
}

#dn-app.dn-role-investor .dn-chart-legend {
  min-width: 0;
  width: 100%;
}

#dn-app.dn-role-investor .dn-chart-legend > div {
  min-width: 0;
  grid-template-columns: 8px minmax(55px, 1fr) auto;
}

#dn-app.dn-role-investor .dn-chart-legend strong {
  min-width: 0;
  white-space: nowrap;
}

#dn-app.dn-role-investor .dn-investor-bars,
#dn-app.dn-role-investor .dn-investor-bar-row,
#dn-app.dn-role-investor .dn-investor-bar-meta {
  min-width: 0;
  width: 100%;
}

#dn-app.dn-role-investor .dn-investor-bar-meta > span {
  min-width: 0;
  flex: 1 1 auto;
}

#dn-app.dn-role-investor .dn-investor-bar-meta > strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 420px) {
  #dn-app.dn-role-investor .dn-investor-donut-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  #dn-app.dn-role-investor .dn-chart-legend {
    width: 100%;
  }
}

/* VALORA_PERSIAN_FILE_PICKER_STYLES_V1 */

#dn-app .dn-native-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#dn-app .dn-file-picker {
  width: 100%;
  margin-top: 6px;
}

#dn-app .dn-file-picker-main {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 6px;
  border: 1px solid rgba(22, 36, 58, 0.13);
  border-radius: 12px;
  background: #fff;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

#dn-app .dn-file-picker:hover .dn-file-picker-main {
  border-color: rgba(2, 50, 105, 0.25);
  background: #fbfcfe;
}

#dn-app .dn-file-picker.has-file .dn-file-picker-main {
  border-color: rgba(0, 150, 115, 0.28);
  background: rgba(0, 150, 115, 0.035);
}

#dn-app .dn-file-picker-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid rgba(2, 50, 105, 0.16);
  border-radius: 9px;
  background: rgba(2, 50, 105, 0.06);
  color: #023269;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background .18s ease,
    border-color .18s ease,
    transform .12s ease;
}

#dn-app .dn-file-picker-button:hover {
  background: rgba(2, 50, 105, 0.1);
  border-color: rgba(2, 50, 105, 0.26);
}

#dn-app .dn-file-picker-button:active {
  transform: translateY(1px);
}

#dn-app .dn-file-picker-name {
  flex: 1 1 auto;
  min-width: 0;
  color: #7a8596;
  font-size: 12px;
  direction: rtl;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#dn-app .dn-file-picker.has-file .dn-file-picker-name {
  color: #26364d;
  font-weight: 600;
}

#dn-app .dn-file-picker-hint {
  margin-top: 5px;
  padding-inline: 4px;
  color: #8a95a5;
  font-size: 10px;
  line-height: 1.6;
}

#dn-app .dn-attach-box {
  padding: 12px !important;
}

#dn-app .dn-attach-box .dn-field {
  margin-bottom: 0;
}

#dn-app .dn-attach-box label {
  margin-bottom: 7px;
  line-height: 1.7;
}

@media (max-width: 520px) {
  #dn-app .dn-file-picker-main {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  #dn-app .dn-file-picker-button {
    width: 100%;
    justify-content: center;
  }

  #dn-app .dn-file-picker-name {
    width: 100%;
    padding: 3px 5px;
    text-align: right;
  }
}

/* VALORA_MARKET_CARD_V2_STYLES */

.dn-market-card-v2 {
  padding: 18px;
  border: 1px solid rgba(22, 36, 58, .08);
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(24, 38, 60, .055);
  overflow: hidden;
}

.dn-market-card-v2 + .dn-market-card-v2 {
  margin-top: 14px;
}

.dn-market-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dn-market-card-title {
  min-width: 0;
  flex: 1;
}

.dn-market-card-title h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  color: var(--dn-ink);
  font-size: 16px;
  line-height: 1.7;
}

.dn-market-note-id {
  direction: ltr;
  display: inline-block;
  font-weight: 800;
}

.dn-market-title-separator {
  color: #a2a9b3;
  font-weight: 400;
}

.dn-market-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
  color: var(--dn-muted);
  font-size: 11px;
}

.dn-market-card-meta i {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b1b8c1;
}

.dn-market-card-status {
  flex: 0 0 auto;
}

.dn-market-fund-row {
  margin-top: 10px;
}

.dn-market-fund-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 100px;
  background: var(--dn-gold-soft);
  color: var(--dn-gold);
  font-size: 10.5px;
  font-weight: 700;
}

/* VALORA_MARKET_FINANCE_REDESIGN_V1 */

.dn-market-card-v2 {
  padding:16px;
}


.dn-market-finance-box {
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid rgba(22,36,58,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
}


.dn-market-finance-amount span {
  display:block;
  color:var(--dn-muted);
  font-size:11px;
  margin-bottom:5px;
}


.dn-market-finance-amount strong {
  display:block;
  color:var(--dn-ink);
  font-size:17px;
  font-weight:800;
}


.dn-market-progress-circle {
  width:56px;
  height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    conic-gradient(
      #327cdf var(--progress),
      #e5e7eb var(--progress)
    );
  position:relative;
}


.dn-market-progress-circle::before {
  content:"";
  position:absolute;
  width:42px;
  height:42px;
  background:#fff;
  border-radius:50%;
}


.dn-market-progress-circle span {
  position:relative;
  z-index:2;
  font-size:11px;
  font-weight:800;
  color:var(--dn-ink);
}


@media(max-width:700px){

  .dn-market-finance-box {
    padding:10px;
  }

  .dn-market-progress-circle {
    width:50px;
    height:50px;
  }

  .dn-market-progress-circle::before {
    width:38px;
    height:38px;
  }

}


/* VALORA_CREDIT_RISK_CARD_V1 */

.dn-market-credit-risk {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}

.dn-market-credit-item {
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(22,36,58,.08);
  background:#f8fafc;
  text-align:center;
}

.dn-market-credit-item > span {
  display:block;
  color:var(--dn-muted);
  font-size:10px;
  line-height:1.6;
  margin-bottom:5px;
}

.dn-market-credit-item > strong {
  display:block;
  color:var(--dn-ink);
  font-size:15px;
  font-weight:800;
}

.dn-risk-low {
  color:#15803d !important;
}

.dn-risk-medium {
  color:#b45309 !important;
}

.dn-risk-high {
  color:#b91c1c !important;
}


.dn-market-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.dn-market-kpi {
  min-width: 0;
  padding: 11px 9px;
  border: 1px solid rgba(22, 36, 58, .07);
  border-radius: 12px;
  background: #fafbfc;
  text-align: center;
}

.dn-market-kpi > span {
  display: block;
  margin-bottom: 5px;
  color: var(--dn-muted);
  font-size: 10px;
  line-height: 1.5;
}

.dn-market-kpi > strong {
  display: block;
  color: var(--dn-ink);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 800;
}

.dn-market-kpi .dn-market-date {
  font-size: 12.5px;
  white-space: nowrap;
}

.dn-market-funding {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--dn-line);
}

.dn-market-funding-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.dn-market-funding-heading > div {
  min-width: 0;
}

.dn-market-funding-heading span {
  display: block;
  margin-bottom: 3px;
  color: var(--dn-muted);
  font-size: 10.5px;
}

.dn-market-funding-heading > div > strong {
  display: block;
  color: var(--dn-ink);
  font-size: 12px;
  line-height: 1.7;
}

.dn-market-progress-pct {
  flex: 0 0 auto;
  color: var(--dn-gold);
  font-size: 13px;
}

.dn-market-progress {
  height: 9px;
  margin-top: 9px;
}

.dn-market-funding-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 7px;
  color: var(--dn-muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.dn-market-card-actions {
  margin-top: 16px;
}

.dn-market-invest-btn {
  min-height: 44px;
  font-size: 13px;
}

.dn-market-card-complete {
  background: #fcfcfd;
}

.dn-market-card-complete .dn-market-kpi,
.dn-market-card-complete .dn-market-funding {
  opacity: .88;
}

.dn-market-complete-state {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f4f7;
  color: var(--dn-muted);
  text-align: center;
}

.dn-market-complete-state strong {
  color: var(--dn-ink-2);
  font-size: 12px;
}

.dn-market-complete-state span {
  font-size: 10.5px;
  line-height: 1.7;
}


/* Investment modal */

.dn-invest-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(12, 16, 28, .55);
  direction: rtl;
}

.dn-invest-modal {
  width: min(440px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .24);
}

.dn-invest-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dn-invest-modal-header h3 {
  margin: 0;
  color: var(--dn-ink);
  font-size: 17px;
}

.dn-invest-modal-header p {
  margin: 4px 0 0;
  color: var(--dn-muted);
  font-size: 11px;
}

.dn-invest-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--dn-line);
  border-radius: 9px;
  background: #fff;
  color: var(--dn-muted);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

.dn-invest-modal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.dn-invest-modal-summary > div {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(22, 36, 58, .07);
  border-radius: 11px;
  background: #f8fafc;
}

.dn-invest-modal-summary span {
  display: block;
  margin-bottom: 4px;
  color: var(--dn-muted);
  font-size: 10px;
}

.dn-invest-modal-summary strong {
  display: block;
  color: var(--dn-ink);
  font-size: 12px;
  line-height: 1.7;
}

.dn-invest-modal-field {
  margin-bottom: 16px;
}

.dn-invest-modal-amount {
  direction: ltr;
  text-align: left;
}

.dn-invest-modal-actions {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: 8px;
}

.dn-invest-modal-actions .dn-btn {
  width: 100%;
  margin: 0;
}

@media (max-width: 420px) {

  .dn-market-card-v2 {
    padding: 15px;
  }

  .dn-market-card-header {
    gap: 8px;
  }

  .dn-market-card-title h3 {
    font-size: 14px;
  }

  .dn-market-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dn-market-kpi:nth-child(3) {
    grid-column: 1 / -1;
  }

  .dn-market-funding-heading {
    align-items: flex-start;
  }

  .dn-invest-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .dn-invest-modal {
    width: 100%;
    max-height: 90vh;
    border-radius: 18px 18px 0 0;
    padding: 18px;
  }

  .dn-invest-modal-summary {
    grid-template-columns: 1fr;
  }

  .dn-invest-modal-actions {
    grid-template-columns: 1fr;
  }

  .dn-invest-modal-submit {
    order: -1;
  }
}

/* VALORA_INVEST_MODAL_POLISH_V1 */

.dn-invest-modal,
.dn-invest-modal * {
  box-sizing: border-box;
}

.dn-invest-modal-overlay {
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
}

.dn-invest-modal {
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.dn-invest-modal-header {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.dn-invest-modal-header > div {
  min-width: 0;
  flex: 1 1 auto;
}

.dn-invest-modal-header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.8;
}

.dn-invest-modal-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.8;
}

.dn-invest-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 20px;
  cursor: pointer;
  transition: background .18s ease, transform .12s ease;
}

.dn-invest-modal-close:hover {
  background: #e2e8f0;
}

.dn-invest-modal-close:active {
  transform: translateY(1px);
}

.dn-invest-modal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.dn-invest-modal-summary > div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(22, 36, 58, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.dn-invest-modal-summary span {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.7;
}

.dn-invest-modal-summary strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.8;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.dn-invest-modal-field {
  margin-bottom: 18px;
}

.dn-invest-modal-field label {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
}

.dn-invest-modal-amount {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(22, 36, 58, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  direction: ltr;
  text-align: left;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.dn-invest-modal-amount::-webkit-outer-spin-button,
.dn-invest-modal-amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dn-invest-modal-amount:focus {
  outline: none;
  border-color: rgba(2, 50, 105, 0.34);
  box-shadow: 0 0 0 4px rgba(20, 112, 164, 0.10);
  background: #fcfdff;
}

.dn-invest-modal .dn-limit-hint {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dn-invest-modal .dn-limit-hint + .dn-limit-hint {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(148, 163, 184, 0.28);
}

.dn-invest-modal .dn-num {
  font-variant-numeric: tabular-nums;
}

.dn-invest-modal-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: 10px;
  margin-top: 20px;
}

.dn-invest-modal-actions .dn-btn {
  width: 100%;
  min-height: 46px;
  margin: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.dn-invest-modal-actions .dn-btn-outline {
  background: #ffffff;
  border: 1px solid rgba(22, 36, 58, 0.12);
  color: #334155;
}

.dn-invest-modal-actions .dn-btn-outline:hover {
  background: #f8fafc;
}

.dn-invest-modal-actions .dn-btn-primary {
  box-shadow: 0 8px 22px rgba(20, 112, 164, 0.16);
}

@media (max-width: 520px) {
  .dn-invest-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .dn-invest-modal {
    width: 100%;
    max-width: none;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    padding: 18px;
  }

  .dn-invest-modal-summary {
    grid-template-columns: 1fr;
  }

  .dn-invest-modal-actions {
    grid-template-columns: 1fr;
  }

  .dn-invest-modal-submit {
    order: -1;
  }
}

/* VALORA_INVEST_MODAL_UNIFY_V2 */

.dn-invest-modal,
.dn-invest-modal * {
  font-family: inherit !important;
  box-sizing: border-box;
}

.dn-invest-modal {
  color: #0f172a;
}

.dn-invest-modal-header h3,
.dn-invest-modal-header p,
.dn-invest-modal-summary span,
.dn-invest-modal-summary strong,
.dn-invest-modal-field label,
.dn-invest-modal .dn-limit-hint,
.dn-invest-modal .dn-num,
.dn-invest-modal-actions .dn-btn {
  font-family: inherit !important;
}

.dn-invest-modal-summary strong,
.dn-invest-modal .dn-num,
.dn-invest-modal-amount {
  font-variant-numeric: tabular-nums;
}

/* input */
.dn-invest-modal-amount {
  min-height: 54px;
  border-radius: 14px;
  font-family: inherit !important;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  color: #0f172a;
  background: #ffffff;
}

.dn-invest-modal-amount::placeholder {
  color: #94a3b8;
  font-weight: 500;
  font-family: inherit !important;
}

/* helper blocks under amount */
.dn-invest-modal .dn-invest-modal-field {
  display: flex;
  flex-direction: column;
}

.dn-invest-modal .dn-limit-hint {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(22, 36, 58, 0.08);
  border-radius: 12px;
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.95;
  box-shadow: none !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* first helper: maximum allowed */
.dn-invest-modal .dn-invest-modal-field .dn-limit-hint:first-of-type {
  border-color: rgba(22, 36, 58, 0.08);
  background: #f8fafc !important;
  color: #475569 !important;
}

/* last helper: predicted profit / calculated summary */
.dn-invest-modal .dn-invest-modal-field .dn-limit-hint:last-of-type {
  border-color: rgba(20, 112, 164, 0.14);
  background: rgba(20, 112, 164, 0.06) !important;
  color: #023269 !important;
}

/* prevent old yellow accent / mixed styles */
.dn-invest-modal .dn-invest-modal-field .dn-limit-hint::before,
.dn-invest-modal .dn-invest-modal-field .dn-limit-hint::after {
  display: none !important;
  content: none !important;
}

/* emphasize numbers inside helper blocks */
.dn-invest-modal .dn-limit-hint .dn-num,
.dn-invest-modal .dn-limit-hint strong,
.dn-invest-modal .dn-limit-hint b {
  color: #0f172a !important;
  font-weight: 800;
  font-family: inherit !important;
}

/* specifically make profit-related line cleaner */
.dn-invest-modal .dn-invest-modal-field .dn-limit-hint:last-of-type .dn-num,
.dn-invest-modal .dn-invest-modal-field .dn-limit-hint:last-of-type strong,
.dn-invest-modal .dn-invest-modal-field .dn-limit-hint:last-of-type b {
  color: #023269 !important;
}

/* spacing between helper rows */
.dn-invest-modal .dn-invest-modal-field .dn-limit-hint + .dn-limit-hint {
  margin-top: 8px;
}

/* buttons */
.dn-invest-modal-actions .dn-btn {
  font-family: inherit !important;
  font-weight: 700;
}

/* summary cards slightly more unified */
.dn-invest-modal-summary > div {
  border-radius: 14px;
}

.dn-invest-modal-summary strong {
  font-size: 13px;
  line-height: 1.9;
}

/* mobile polish */
@media (max-width: 520px) {
  .dn-invest-modal-amount {
    font-size: 16px;
  }

  .dn-invest-modal .dn-limit-hint {
    font-size: 10.5px;
    line-height: 1.9;
    padding: 9px 10px;
  }
}

/* VALORA_INVESTMENT_MODAL_FINANCIAL_V3_STYLES */

/* Complete font consistency */
.dn-invest-modal,
.dn-invest-modal input,
.dn-invest-modal button,
.dn-invest-modal strong,
.dn-invest-modal span,
.dn-invest-modal label,
.dn-invest-modal p,
.dn-invest-modal h3 {
  font-family: inherit !important;
}

/* Top financial cards */
.dn-invest-modal-summary > div {
  padding: 16px 15px !important;
  background: #f8fafc !important;
  border: 1px solid #e8edf3 !important;
  border-radius: 14px !important;
}

.dn-invest-modal-summary span {
  margin-bottom: 7px !important;
  color: #64748b !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
}

.dn-invest-modal-summary strong {
  color: #0f172a !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.8 !important;
  white-space: normal !important;
}

/* Amount label */
.dn-invest-modal-field > label {
  margin-bottom: 8px !important;
  color: #334155 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
}

/* Main financial input */
.dn-invest-modal .dn-invest-modal-amount {
  width: 100% !important;
  min-height: 62px !important;
  padding: 13px 16px !important;

  border: 1px solid #d9e0e8 !important;
  border-radius: 14px !important;

  background: #fff !important;
  color: #0f172a !important;

  font-family: inherit !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;

  direction: ltr !important;
  text-align: right !important;

  letter-spacing: 0 !important;

  box-shadow: none !important;
  outline: none !important;

  caret-color: #1470A4;
}

.dn-invest-modal .dn-invest-modal-amount::placeholder {
  color: #a8b1bd !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

.dn-invest-modal .dn-invest-modal-amount:focus {
  border-color: #1470A4 !important;
  box-shadow: 0 0 0 4px rgba(20,112,164,.09) !important;
}

/* Kill the old yellow appearance if any old generic rule wins */
.dn-invest-modal .dn-field input:focus {
  border-color: #1470A4 !important;
  box-shadow: 0 0 0 4px rgba(20,112,164,.09) !important;
}

/* Hide old helpers inside this modal, if stale generated HTML survives */
.dn-invest-modal .dn-fa-amount-hint {
  display: none !important;
}

/* Maximum investment line */
.dn-invest-modal .dn-limit-hint {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 6px 12px !important;

  margin: 9px 0 0 !important;
  padding: 9px 12px !important;

  border: 0 !important;
  border-radius: 10px !important;

  background: #f8fafc !important;
  color: #64748b !important;

  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.8 !important;
}

.dn-invest-modal .dn-limit-hint .dn-num {
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

/* New calculated financial summary */
.dn-invest-live-preview {
  display: grid;
  grid-template-columns: minmax(0,1fr) 1px minmax(0,1fr);
  align-items: stretch;

  margin-top: 12px;
  padding: 14px 15px;

  border: 1px solid rgba(20,112,164,.13);
  border-radius: 14px;

  background: rgba(20,112,164,.045);
}

.dn-invest-live-preview[hidden] {
  display: none !important;
}

.dn-invest-live-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dn-invest-live-item > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
}

.dn-invest-live-item > strong {
  display: block;

  color: #1470A4;
  font-family: inherit !important;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.8;

  overflow-wrap: anywhere;
}

.dn-invest-live-total-item > strong {
  color: #023269;
}

.dn-invest-live-divider {
  width: 1px;
  margin: 0 14px;
  background: rgba(20,112,164,.12);
}

/* Ensure all formatted financial figures feel consistent */
.dn-invest-modal .dn-num,
.dn-invest-live-preview .dn-num {
  font-family: inherit !important;
  font-variant-numeric: tabular-nums;
}

/* Cleaner action area */
.dn-invest-modal-actions {
  margin-top: 18px !important;
  padding-top: 0 !important;
}

.dn-invest-modal-actions .dn-btn {
  min-height: 48px !important;
  border-radius: 12px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
}

@media (max-width: 520px) {

  .dn-invest-modal .dn-invest-modal-amount {
    min-height: 58px !important;
    font-size: 20px !important;
  }

  .dn-invest-modal-summary strong {
    font-size: 15px !important;
  }

  .dn-invest-live-preview {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dn-invest-live-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }

  .dn-invest-live-item > strong {
    font-size: 16px;
  }
}

/* VALORA_INVEST_MODAL_TYPOGRAPHY_V4 */

/* Main modal typography */
.dn-invest-modal {
  font-size: 14px;
}

.dn-invest-modal-header h3 {
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.7 !important;
}

.dn-invest-modal-header p {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.8 !important;
}

/* Summary cards */
.dn-invest-modal-summary span {
  font-size: 12px !important;
  font-weight: 600 !important;
}

.dn-invest-modal-summary strong {
  font-size: 17px !important;
  font-weight: 800 !important;
}

/* Amount label */
.dn-invest-modal-field > label {
  font-size: 13.5px !important;
  font-weight: 800 !important;
}

/* Main entered amount */
.dn-invest-modal .dn-invest-modal-amount {
  font-size: 23px !important;
  font-weight: 800 !important;
}

/* Maximum investment helper */
.dn-invest-modal .dn-limit-hint {
  font-size: 12px !important;
  font-weight: 600 !important;
}

.dn-invest-modal .dn-limit-hint .dn-num {
  font-size: 13px !important;
  font-weight: 800 !important;
}

/* Financial result box */
.dn-invest-live-item > span {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #64748b !important;
}

/* PROFIT: same green as the rest of Valora */
.dn-invest-live-profit {
  color: var(--dn-green) !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.8 !important;
}

/* Total received */
.dn-invest-live-total {
  color: var(--dn-ink) !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.8 !important;
}

/* Keep formatted amounts consistent */
.dn-invest-live-profit .dn-num,
.dn-invest-live-total .dn-num {
  font-size: inherit !important;
  font-weight: inherit !important;
  font-family: inherit !important;
}

/* CTA typography */
.dn-invest-modal-actions .dn-btn {
  font-size: 14px !important;
  font-weight: 800 !important;
}

@media (max-width: 520px) {

  .dn-invest-modal-header h3 {
    font-size: 18px !important;
  }

  .dn-invest-modal .dn-invest-modal-amount {
    font-size: 21px !important;
  }

  .dn-invest-live-profit,
  .dn-invest-live-total {
    font-size: 18px !important;
  }
}

/* VALORA_INVESTMENT_MODAL_VISUAL_ROOT_FIX_V5_STYLES */

/*
 * The modal is portalled to document.body, outside #dn-app.
 * Therefore do NOT rely on inherit or #dn-app scoped variables.
 */

.dn-invest-modal-overlay,
.dn-invest-modal,
.dn-invest-modal *,
.dn-invest-modal input,
.dn-invest-modal button {
  font-family:
    'Vazirmatn',
    'IRANSansX',
    'IRANSans',
    Tahoma,
    'Segoe UI',
    sans-serif !important;
}

/* overall text rhythm */
.dn-invest-modal {
  color: #0f172a !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

/* title */
.dn-invest-modal-header h3 {
  color: #0f172a !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.65 !important;
}

.dn-invest-modal-header p {
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

/* top financial summary */
.dn-invest-modal-summary span {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.dn-invest-modal-summary strong {
  color: #0f172a !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.75 !important;
  direction: rtl !important;
  unicode-bidi: plaintext !important;
}

/* investment amount label */
.dn-invest-modal-field > label {
  color: #334155 !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
}

/* large localized amount input */
.dn-invest-modal .dn-invest-modal-amount {
  min-height: 62px !important;
  padding: 12px 16px !important;

  color: #0f172a !important;
  background: #fff !important;

  border: 1px solid #d9e0e8 !important;
  border-radius: 14px !important;

  font-family:
    'Vazirmatn',
    'IRANSansX',
    'IRANSans',
    Tahoma,
    'Segoe UI',
    sans-serif !important;

  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;

  direction: rtl !important;
  text-align: right !important;

  box-shadow: none !important;
}

.dn-invest-modal .dn-invest-modal-amount:focus {
  outline: none !important;
  border-color: #1470A4 !important;
  box-shadow:
    0 0 0 4px rgba(20,112,164,.09) !important;
}

/* max investment */
.dn-invest-modal .dn-limit-hint {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.9 !important;
}

.dn-invest-modal .dn-limit-hint .dn-num {
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

/* calculated results */
.dn-invest-live-item > span {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/*
 * Profit uses the exact Valora green.
 * Hard-coded deliberately because this modal is outside
 * the #dn-app custom-property scope.
 */
.dn-invest-live-profit {
  display: block !important;

  color: #0d8a56 !important;

  font-family:
    'Vazirmatn',
    'IRANSansX',
    'IRANSans',
    Tahoma,
    'Segoe UI',
    sans-serif !important;

  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.75 !important;

  direction: rtl !important;
  unicode-bidi: plaintext !important;
}

/* total received */
.dn-invest-live-total {
  display: block !important;

  color: #0f172a !important;

  font-family:
    'Vazirmatn',
    'IRANSansX',
    'IRANSans',
    Tahoma,
    'Segoe UI',
    sans-serif !important;

  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.75 !important;

  direction: rtl !important;
  unicode-bidi: plaintext !important;
}

/*
 * Defensive rule:
 * if old fmtToman markup ever appears due to stale cache,
 * make it inherit the correct styles.
 */
.dn-invest-live-profit .dn-money,
.dn-invest-live-profit .dn-money-value,
.dn-invest-live-profit .dn-money-unit {
  color: #0d8a56 !important;
  font-family:
    'Vazirmatn',
    'IRANSansX',
    'IRANSans',
    Tahoma,
    'Segoe UI',
    sans-serif !important;
}

.dn-invest-live-total .dn-money,
.dn-invest-live-total .dn-money-value,
.dn-invest-live-total .dn-money-unit {
  color: #0f172a !important;
  font-family:
    'Vazirmatn',
    'IRANSansX',
    'IRANSans',
    Tahoma,
    'Segoe UI',
    sans-serif !important;
}

/* buttons */
.dn-invest-modal-actions .dn-btn {
  font-family:
    'Vazirmatn',
    'IRANSansX',
    'IRANSans',
    Tahoma,
    'Segoe UI',
    sans-serif !important;

  font-size: 14px !important;
  font-weight: 800 !important;
}

/* keep old helper fragments out */
.dn-invest-modal .dn-fa-amount-hint {
  display: none !important;
}

@media (max-width: 520px) {

  .dn-invest-modal-header h3 {
    font-size: 18px !important;
  }

  .dn-invest-modal-summary strong {
    font-size: 16px !important;
  }

  .dn-invest-modal .dn-invest-modal-amount {
    font-size: 21px !important;
  }

  .dn-invest-live-profit,
  .dn-invest-live-total {
    font-size: 19px !important;
  }
}



/* VALORA_P1_3_INVESTOR_FEE_MODAL_LAYOUT_FIX_V1
   Fee preview now has four financial items. The old horizontal flex layout
   squeezed them into unreadably narrow columns. Keep a stable 2x2 grid on
   normal screens and a single column on small screens. */
.dn-invest-modal .dn-invest-live-preview {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 12px !important;
  align-items: stretch !important;
}

.dn-invest-modal .dn-invest-live-preview[hidden] {
  display: none !important;
}

.dn-invest-modal .dn-invest-live-preview .dn-invest-live-divider {
  display: none !important;
}

.dn-invest-modal .dn-invest-live-preview .dn-invest-live-item {
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(22, 36, 58, 0.08) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  text-align: right !important;
}

.dn-invest-modal .dn-invest-live-preview .dn-invest-live-item > span {
  display: block !important;
  margin-bottom: 5px !important;
  line-height: 1.7 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.dn-invest-modal .dn-invest-live-preview .dn-invest-live-item > strong {
  display: block !important;
  max-width: 100% !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  direction: rtl !important;
  unicode-bidi: isolate !important;
}

@media (max-width: 520px) {
  .dn-invest-modal .dn-invest-live-preview {
    grid-template-columns: 1fr !important;
  }
}

/* VALORA_INVESTOR_WALLET_HERO_UI_POLISH_V1 */

/* main hero card */
.dn-wallet-visual-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 16px;
  min-height: 0;
}

/* main content area */
.dn-wallet-dashboard-main {
  flex: 1 1 280px;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

/* wallet icon */
.dn-wallet-dashboard-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
}

/* text block */
.dn-wallet-balance-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dn-wallet-balance-copy > span {
  font-size: 11px;
  line-height: 1.6;
  color: #d9e0ea;
}

.dn-wallet-balance-copy > small {
  font-size: 10.5px;
  line-height: 1.65;
  color: rgba(255,255,255,.78);
}

/* balance line */
.dn-wallet-balance {
  display: block;
  margin-top: 0 !important;
  line-height: 1.3;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(20px, 4.6vw, 30px) !important;
}

/* if fmtToman renders as dn-money */
.dn-wallet-balance .dn-money {
  display: inline-flex !important;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
}

.dn-wallet-balance .dn-money-value {
  font-size: clamp(20px, 4.8vw, 31px) !important;
  line-height: 1.25;
}

.dn-wallet-balance .dn-money-unit {
  font-size: clamp(12px, 2.8vw, 15px) !important;
  line-height: 1.4;
  opacity: .92;
}

/* buttons row */
.dn-wallet-hero-actions {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: stretch;
  margin-top: 4px;
}

.dn-wallet-hero-actions .dn-btn {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1;
}

.dn-wallet-hero-actions .dn-btn svg {
  flex: 0 0 auto;
}

/* keep refresh and topup visually balanced */
#dn-wallet-refresh,
#dn-wallet-test-topup {
  flex: 0 0 auto;
}

/* mobile polish */
@media (max-width: 640px) {
  .dn-wallet-visual-card {
    padding: 16px;
    gap: 12px;
  }

  .dn-wallet-dashboard-main {
    flex: 1 1 100%;
    gap: 10px;
  }

  .dn-wallet-dashboard-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .dn-wallet-balance-copy > span {
    font-size: 10.5px;
  }

  .dn-wallet-balance-copy > small {
    font-size: 10px;
  }

  .dn-wallet-balance {
    font-size: clamp(18px, 5.2vw, 25px) !important;
  }

  .dn-wallet-balance .dn-money-value {
    font-size: clamp(18px, 5.2vw, 25px) !important;
  }

  .dn-wallet-balance .dn-money-unit {
    font-size: 11.5px !important;
  }

  .dn-wallet-hero-actions {
    width: 100%;
    margin-top: 2px;
  }

  .dn-wallet-hero-actions .dn-btn {
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
    min-width: 0;
    padding-inline: 10px;
    font-size: 12.5px;
  }
}

@media (max-width: 420px) {
  .dn-wallet-hero-actions .dn-btn {
    flex: 1 1 100%;
  }
}



/* VALORA_MARKET_CARD_V3_FINAL */

.dn-market-card-v2 {
  padding:14px;
  border-radius:20px;
  box-shadow:0 8px 30px rgba(15,23,42,.06);
}


.dn-market-card-header {
  margin-bottom:8px;
}


.dn-market-card-title h3 {
  font-size:15px;
}


.dn-market-guarantee {
  margin-top:10px;
  padding:8px 12px;
  background:#f0fdf4;
  border:1px solid #dcfce7;
  border-radius:12px;
  display:flex;
  align-items:center;
  gap:8px;
}


.dn-market-guarantee img {
  width:24px;
  height:24px;
  object-fit:contain;
}


.dn-market-guarantee span {
  color:#15803d;
  font-size:11px;
}


.dn-market-guarantee strong {
  color:#14532d;
  font-size:12px;
}


.dn-market-kpi-grid {
  margin-top:12px;
  gap:8px;
}


.dn-market-kpi {
  padding:9px 6px;
  border-radius:12px;
}


.dn-market-kpi > strong {
  font-size:14px;
}


.dn-market-credit-risk {
  margin-top:10px;
}


.dn-market-credit-item {
  background:#fff;
  padding:9px;
}


.dn-market-credit-item > strong {
  font-size:15px;
}


.dn-market-finance-box {
  margin-top:12px;
  min-height:82px;
  display:flex;
  flex-direction:row-reverse;
  align-items:center;
  justify-content:space-between;
  padding:12px 16px;
  border-radius:16px;
}


.dn-market-finance-amount {
  text-align:right;
}


.dn-market-finance-amount strong {
  font-size:18px;
}


.dn-market-progress-circle {
  width:64px;
  height:64px;
}


.dn-market-progress-circle::before {
  width:48px;
  height:48px;
}


.dn-market-card-actions {
  margin-top:12px;
}


.dn-market-card-actions .dn-btn {
  height:42px;
  border-radius:12px;
}




/* VALORA_MARKET_CARD_V5 */

.dn-market-card-v5 {
  padding:14px;
  border-radius:20px;
  box-shadow:0 8px 28px rgba(15,23,42,.06);
  overflow:hidden;
}


.dn-market-v5-header {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}


.dn-market-v5-title {
  text-align:right;
}


.dn-market-v5-id {
  font-size:13px;
  font-weight:700;
  color:var(--dn-ink);
}


.dn-market-v5-title h3 {
  margin:4px 0;
  font-size:16px;
  font-weight:800;
}


.dn-market-v5-title span {
  font-size:11px;
  color:var(--dn-muted);
}


/* guarantee */

.dn-market-v5-guarantee {
  margin-top:10px;
  padding:8px 12px;
  border-radius:12px;
  background:#f0fdf4;
  border:1px solid #dcfce7;

  display:flex;
  align-items:center;
  gap:8px;
}


.dn-market-v5-guarantee img {
  width:22px !important;
  height:22px !important;
  object-fit:contain;
}


.dn-market-v5-guarantee small {
  display:block;
  color:#15803d;
  font-size:10px;
}


.dn-market-v5-guarantee strong {
  display:block;
  font-size:12px;
}


/* KPI */

.dn-market-v5-kpis {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:12px;
}


.dn-market-v5-kpis > div,
.dn-market-v5-risk > div {
  padding:9px;
  background:#fafbfc;
  border:1px solid rgba(22,36,58,.08);
  border-radius:12px;
  text-align:center;
}


.dn-market-v5-kpis span,
.dn-market-v5-risk span {
  display:block;
  color:var(--dn-muted);
  font-size:10px;
  margin-bottom:4px;
}


.dn-market-v5-kpis strong,
.dn-market-v5-risk strong {
  display:block;
  font-size:14px;
  font-weight:800;
}


/* Risk */

.dn-market-v5-risk {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:10px;
}


/* Finance */

.dn-market-v5-finance {
  margin-top:12px;
  padding:12px;
  border-radius:16px;
  background:#fafbfc;
  border:1px solid rgba(22,36,58,.08);

  display:flex;
  justify-content:space-between;
  align-items:center;
}


.dn-market-v5-finance span {
  display:block;
  font-size:11px;
  color:var(--dn-muted);
}


.dn-market-v5-finance strong {
  font-size:18px;
  font-weight:900;
}


.dn-market-v5-circle {
  width:62px;
  height:62px;
  border-radius:50%;

  background:
    conic-gradient(
      #327cdf var(--progress),
      #e5e7eb var(--progress)
    );

  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}


.dn-market-v5-circle:before {
  content:"";
  position:absolute;
  width:46px;
  height:46px;
  background:#fff;
  border-radius:50%;
}


.dn-market-v5-circle span {
  position:relative;
  z-index:2;
  font-size:12px;
  font-weight:800;
}


.dn-market-card-actions {
  margin-top:12px;
}


.dn-market-card-actions .dn-btn {
  height:42px;
  border-radius:12px;
}




/* VALORA_MARKET_CARD_V6_LAYOUT */

.dn-market-card-v6 {
  padding:14px;
  border-radius:18px;
  box-shadow:0 6px 24px rgba(15,23,42,.06);
  overflow:hidden;
}


.dn-market-v6-header {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}


.dn-market-v6-note {
  display:inline-flex;
  padding:3px 9px;
  background:#f1f5f9;
  border-radius:8px;
  font-size:12px;
  font-weight:800;
}


.dn-market-v6-title h3 {
  margin:6px 0 2px;
  font-size:16px;
  font-weight:800;
}


.dn-market-v6-title span {
  color:var(--dn-muted);
  font-size:11px;
}


/* guarantee */

.dn-market-v6-guarantee {
  margin-top:10px;
  padding:8px 12px;
  border-radius:12px;
  background:#f8fafc;
  border:1px solid rgba(22,36,58,.08);
}


.dn-market-bank-placeholder span {
  display:block;
  color:var(--dn-muted);
  font-size:10px;
}


.dn-market-bank-placeholder strong {
  font-size:12px;
}


/* KPI */

.dn-market-v6-kpi-grid {

  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:12px;

}


.dn-market-v6-kpi {

  padding:9px 6px;
  border-radius:12px;
  background:#fafbfc;
  border:1px solid rgba(22,36,58,.07);
  text-align:center;

}


.dn-market-icon {

  width:24px;
  height:24px;
  margin:0 auto 5px;
  border-radius:50%;
  background:#eef2ff;

}


.dn-market-v6-kpi span,
.dn-market-v6-risk span {

  display:block;
  font-size:10px;
  color:var(--dn-muted);

}


.dn-market-v6-kpi strong {

  display:block;
  margin-top:4px;
  font-size:14px;
  font-weight:800;

}


/* funding */

.dn-market-v6-funding {

  margin-top:12px;
  padding:12px;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid rgba(22,36,58,.08);

  display:flex;
  align-items:center;
  justify-content:space-between;

}


.dn-market-v6-funding-info span {

  display:block;
  font-size:10px;
  color:var(--dn-muted);

}


.dn-market-v6-funding-info strong {

  display:block;
  margin-top:4px;
  font-size:16px;
  font-weight:900;

}


/* circle */

.dn-market-v6-circle {

 width:58px;
 height:58px;
 border-radius:50%;

 display:flex;
 align-items:center;
 justify-content:center;

 background:
 conic-gradient(
 #327cdf var(--progress),
 #e5e7eb var(--progress)
 );

 position:relative;

}


.dn-market-v6-circle:before {

 content:"";
 position:absolute;
 width:42px;
 height:42px;
 background:white;
 border-radius:50%;

}


.dn-market-v6-circle span {

 position:relative;
 z-index:2;
 font-size:11px;
 font-weight:800;

}


/* risk */

.dn-market-v6-risk {

 display:grid;
 grid-template-columns:1fr 1fr;
 gap:8px;
 margin-top:10px;

}


.dn-market-v6-risk > div {

 padding:9px;
 border-radius:12px;
 background:#fafbfc;
 border:1px solid rgba(22,36,58,.07);
 text-align:center;

}


.dn-market-v6-risk strong {

 display:block;
 margin-top:4px;
 font-size:14px;

}




/* VALORA_MARKET_V6_ICONS */

.dn-market-v6-icon {
  width:28px;
  height:28px;
  margin:0 auto 5px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#327cdf;
  background:#eff6ff;
  border-radius:9px;
}

.dn-market-v6-icon svg {
  width:16px;
  height:16px;
}



/* VALORA_MARKET_GUARANTEE_V2 */

.dn-market-v6-guarantee {
  margin-top:10px;
  padding:9px 12px;
  border-radius:12px;
  background:#f8fafc;
  border:1px solid rgba(22,36,58,.08);
  display:flex;
  align-items:center;
  gap:10px;
}


.dn-market-guarantee-icon {
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  background:#eff6ff;
  color:#327cdf;
}


.dn-market-guarantee-text span {
  display:block;
  font-size:10px;
  color:var(--dn-muted);
}


.dn-market-guarantee-text strong {
  display:block;
  margin-top:2px;
  font-size:13px;
  font-weight:800;
  color:var(--dn-ink);
}



/* VALORA_MARKET_V6_COMPACT_PATCH */

.dn-market-card-v6 {
  padding:12px;
}

.dn-market-v6-header {
  gap:8px;
}

.dn-market-v6-kpi-grid {
  margin-top:10px;
  gap:6px;
}

.dn-market-v6-kpi {
  padding:7px 5px;
}

.dn-market-v6-icon {
  width:22px;
  height:22px;
  margin-bottom:3px;
}

.dn-market-v6-kpi strong {
  font-size:15px;
}

.dn-market-v6-funding {
  padding:10px 12px;
}

.dn-market-v6-funding-info:last-child {
  display:none;
}

.dn-market-v6-circle {
  width:56px;
  height:56px;
}

.dn-market-v6-circle:before {
  width:40px;
  height:40px;
}

.dn-market-v6-risk {
  margin-top:8px;
  gap:6px;
}

.dn-market-v6-risk > div {
  padding:7px;
}



/* VALORA_MARKET_CARD_V7_1 */

.dn-market-card-v6 {
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.05);
  background: #fff;
  box-shadow: 0 4px 18px rgba(15,23,42,.04);
  overflow: hidden;
}

.dn-market-v6-guarantee,
.dn-market-v6-kpi,
.dn-market-v6-risk > div,
.dn-market-v6-funding {
  background: #fcfcfd;
  border: 1px solid rgba(15,23,42,.055);
}

.dn-market-v6-guarantee {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dn-market-bank-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 24px;
}

.dn-market-guarantee-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #ecfdf5;
  color: #16a34a;
  flex: 0 0 28px;
}

.dn-market-guarantee-text span {
  display: block;
  font-size: 10px;
  color: var(--dn-muted);
}

.dn-market-guarantee-text strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 800;
  color: var(--dn-ink);
}

.dn-market-v6-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  margin-top: 12px;
}

.dn-market-v6-kpi {
  padding: 10px 7px;
  border-radius: 12px;
  text-align: center;
}

.dn-market-v6-icon {
  width: 30px;
  height: 30px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.dn-market-v6-icon svg {
  width: 16px;
  height: 16px;
}

.dn-market-v6-icon-duration {
  background: #f3e8ff;
  color: #7c3aed;
}

.dn-market-v6-icon-return {
  background: #eff6ff;
  color: #2563eb;
}

.dn-market-v6-icon-rate {
  background: #ecfdf5;
  color: #16a34a;
}

.dn-market-v6-kpi span,
.dn-market-v6-risk span {
  display: block;
  font-size: 10px;
  color: var(--dn-muted);
}

.dn-market-v6-kpi strong,
.dn-market-v6-risk strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
}

.dn-market-v6-funding {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 12px;
  direction: rtl;
}

.dn-market-v6-funding-total {
  text-align: right;
}

.dn-market-v6-funding-raised {
  text-align: left;
}

.dn-market-v6-funding-info span {
  display: block;
  font-size: 10px;
  color: var(--dn-muted);
}

.dn-market-v6-funding-info strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 900;
  color: var(--dn-ink);
}

.dn-market-v6-funding-progress {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dn-market-v6-circle {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    conic-gradient(
      #16a34a var(--progress),
      #e5e7eb var(--progress)
    );
}

.dn-market-v6-circle:before {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
}

.dn-market-v6-circle span {
  position: relative;
  z-index: 2;
  font-size: 12px;
  font-weight: 800;
  color: #166534;
}

.dn-market-v6-risk {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
  margin-top: 10px;
}

.dn-market-v6-risk > div {
  padding: 10px 8px;
  border-radius: 12px;
  text-align: center;
}

.dn-market-v6-risk strong.dn-risk-low {
  color: #16a34a;
}

.dn-market-v6-risk strong.dn-risk-medium {
  color: #d97706;
}

.dn-market-v6-risk strong.dn-risk-high {
  color: #dc2626;
}

@media (max-width: 420px) {
  .dn-market-v6-kpi-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .dn-market-v6-kpi:nth-child(3) {
    grid-column: 1 / -1;
  }

  .dn-market-v6-funding {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 10px;
  }

  .dn-market-v6-funding-total,
  .dn-market-v6-funding-raised {
    text-align: center;
  }

  .dn-market-v6-funding-progress {
    order: -1;
  }
}


/* VALORA_MARKET_CARD_V8_POLISH */


.dn-market-v6-kpi {
  background:#fff;
  border-color:rgba(22,36,58,.06);
}


.dn-market-v6-icon {
  width:30px;
  height:30px;
  border-radius:50%;
}


/* icon colors */

.dn-market-v6-icon-duration {
  color:#7c3aed;
  background:#f5f3ff;
}


.dn-market-v6-icon-return {
  color:#2563eb;
  background:#eff6ff;
}


.dn-market-v6-icon-rate {
  color:#16a34a;
  background:#f0fdf4;
}



.dn-market-v6-guarantee {
  background:#f7fff9;
  border-color:#dcfce7;
}


.dn-market-v6-funding {
  background:#fff;
  border-color:rgba(22,36,58,.06);
  padding:14px 16px;
}


.dn-market-v6-funding-info span {
  font-size:11px;
}


.dn-market-v6-funding-info strong {
  font-size:18px;
}


.dn-market-v6-risk > div {
  background:#fff;
  border-color:rgba(22,36,58,.06);
}


.dn-market-v6-circle {
  width:64px;
  height:64px;
}


.dn-market-v6-circle:before {
  width:48px;
  height:48px;
}


.dn-market-card-v6 {
  box-shadow:0 4px 18px rgba(15,23,42,.04);
}




/* VALORA_MARKET_CARD_V82_POLISH */


.dn-market-v6-label {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}


.dn-market-v6-label .dn-market-v6-icon {
  margin:0;
  width:24px;
  height:24px;
}


.dn-market-v6-kpi {
  padding:8px 6px;
}


.dn-market-v6-kpi strong {
  font-size:13px;
}


.dn-market-v6-risk span:first-child {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:4px;
}


.dn-credit-symbol {
  color:#2563eb;
  font-weight:900;
}


.dn-risk-symbol {
  color:#d97706;
  font-weight:900;
}


.dn-market-v6-risk strong.dn-risk-low {
  color:#16a34a;
}


.dn-market-v6-risk strong.dn-risk-medium {
  color:#d97706;
}


.dn-market-v6-risk strong.dn-risk-high {
  color:#dc2626;
}


.dn-market-v6-funding-info span {
  font-size:10px;
}


.dn-market-v6-funding-info strong {
  font-size:16px;
  letter-spacing:-.2px;
}


.dn-market-v6-circle {
  width:58px;
  height:58px;
}


.dn-market-v6-circle:before {
  width:44px;
  height:44px;
}


.dn-market-v6-funding {
  padding:10px 12px;
}




/* VALORA_MARKET_CARD_V82_POLISH */


.dn-market-v6-label {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}


.dn-market-v6-label .dn-market-v6-icon {
  margin:0;
  width:24px;
  height:24px;
}


.dn-market-v6-kpi {
  padding:8px 6px;
}


.dn-market-v6-kpi strong {
  font-size:13px;
}


.dn-credit-symbol {
  color:#2563eb;
  font-weight:900;
}


.dn-risk-symbol {
  color:#d97706;
  font-weight:900;
}


.dn-market-v6-risk span {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}


.dn-market-v6-risk strong.dn-risk-low {
  color:#16a34a;
}


.dn-market-v6-risk strong.dn-risk-medium {
  color:#d97706;
}


.dn-market-v6-risk strong.dn-risk-high {
  color:#dc2626;
}


.dn-market-v6-funding {
  padding:10px 12px;
}


.dn-market-v6-funding-info span {
  font-size:10px;
}


.dn-market-v6-funding-info strong {
  font-size:16px;
  line-height:1.4;
}


.dn-market-v6-circle {
  width:58px;
  height:58px;
}


.dn-market-v6-circle:before {
  width:44px;
  height:44px;
}




/* VALORA_MARKET_HEADER_V9 */

.dn-market-v9-guarantor {
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:6px;
  padding:0;
  border:none;
  background:transparent;
  direction:rtl;
}


.dn-market-v9-guarantor img,
.dn-market-bank-logo {
  width:28px;
  height:28px;
  object-fit:contain;
  flex:0 0 28px;
}


.dn-market-v9-guarantor > div {
  display:flex;
  flex-direction:column;
  line-height:1.4;
}


.dn-market-v9-guarantor span {
  font-size:10px;
  color:var(--dn-muted);
}


.dn-market-v9-guarantor strong {
  font-size:12px;
  font-weight:800;
  color:var(--dn-ink);
}


.dn-market-v9-status {
  display:flex;
  align-items:center;
}




/* VALORA_MARKET_HEADER_V10_LAYOUT */


.dn-market-v10-header {
  width:100%;
}


.dn-market-v10-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}


.dn-market-v10-main {
  display:flex;
  flex-direction:row;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}


.dn-market-v10-company {
  text-align:right;
  flex:1;
}


.dn-market-v10-company h3 {
  margin:0;
  font-size:16px;
  font-weight:800;
}


.dn-market-v10-company span {
  display:block;
  margin-top:4px;
  font-size:11px;
  color:var(--dn-muted);
}



.dn-market-v10-bank {
  display:flex;
  align-items:center;
  gap:8px;
  flex-direction:row-reverse;
  text-align:right;
  min-width:160px;
}


.dn-market-v10-bank img,
.dn-market-bank-logo {
  width:34px;
  height:34px;
  object-fit:contain;
}


.dn-market-v10-bank small {
  display:block;
  font-size:10px;
  color:var(--dn-muted);
}


.dn-market-v10-bank strong {
  display:block;
  font-size:12px;
  font-weight:800;
}





/* VALORA_MARKET_CARD_V11 */


/* ضمانت بانکی مینیمال */

.dn-market-v10-bank {
  min-width:0;
  gap:6px;
}

.dn-market-v10-bank img,
.dn-market-v10-bank .dn-market-bank-logo {
  width:26px;
  height:26px;
  flex:0 0 26px;
}

.dn-market-v10-bank small {
  font-size:9px;
  line-height:1.2;
}

.dn-market-v10-bank strong {
  font-size:11px;
  line-height:1.35;
}


/* بخش تامین مالی: سه ستون ثابت */

.dn-market-v6-funding {
  display:grid;
  grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr);
  align-items:center;
  column-gap:12px;
  direction:ltr;
}

.dn-market-v6-funding-total {
  grid-column:3;
  direction:rtl;
  text-align:right;
}

.dn-market-v6-funding-progress {
  grid-column:2;
  display:flex;
  align-items:center;
  justify-content:center;
}

.dn-market-v6-funding-raised {
  grid-column:1;
  direction:rtl;
  text-align:left;
}


/* عددهای تامین مالی */

.dn-market-v6-funding-info strong {
  font-size:15px;
  line-height:1.35;
  white-space:nowrap;
}


/* آیکون اعتبار */

.dn-market-v6-inline-label svg {
  width:14px;
  height:14px;
  flex:0 0 14px;
}

.dn-market-v6-inline-label .dn-icon-credit {
  color:#16a34a;
}


/* آیکون ریسک */

.dn-market-v6-inline-label .dn-icon-risk {
  color:#f59e0b;
}


/* رنگ اختصاصی SVGها بر اساس نام */

.dn-market-v6-inline-label {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}

.dn-market-v6-inline-label svg {
  display:block;
}

.dn-market-v6-inline-label svg.credit-icon {
  color:#16a34a;
}

.dn-market-v6-inline-label svg.risk-icon {
  color:#f59e0b;
}



.dn-market-v6-risk > div:first-child .dn-market-v6-inline-label {
  color:#16a34a;
}

.dn-market-v6-risk > div:first-child .dn-market-v6-inline-label svg {
  color:#16a34a;
}

.dn-market-v6-risk > div:last-child .dn-market-v6-inline-label {
  color:#f59e0b;
}

.dn-market-v6-risk > div:last-child .dn-market-v6-inline-label svg {
  color:#f59e0b;
}



/* VALORA_MARKET_CARD_V11_FINAL */


/* --------------------------------
   GUARANTOR — MINIMAL
-------------------------------- */

.dn-market-v10-bank {
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
}

.dn-market-v10-bank img,
.dn-market-v10-bank .dn-market-bank-logo {
  width:26px;
  height:26px;
  flex:0 0 26px;
  object-fit:contain;
}

.dn-market-v10-bank > div {
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  line-height:1.25;
}

.dn-market-v10-bank small {
  font-size:9px;
  line-height:1.3;
  color:var(--dn-muted);
}

.dn-market-v10-bank strong {
  margin-top:1px;
  font-size:11px;
  line-height:1.35;
  font-weight:800;
  color:var(--dn-ink);
}


/* --------------------------------
   COMPANY HEADER — COMPACT
-------------------------------- */

.dn-market-v10-company h3 {
  margin:0;
  font-size:15px;
  line-height:1.5;
  font-weight:800;
}

.dn-market-v10-company span {
  display:none;
}


/* --------------------------------
   FUNDING — RAISED LEFT OF CIRCLE
-------------------------------- */

.dn-market-v6-funding {
  display:grid;
  grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr);
  align-items:center;
  gap:12px;
  padding:10px 12px;
}

.dn-market-v6-funding-total {
  grid-column:3;
  text-align:right;
}

.dn-market-v6-funding-progress {
  grid-column:2;
  display:flex;
  align-items:center;
  justify-content:center;
}

.dn-market-v6-funding-raised {
  grid-column:1;
  text-align:left;
}

.dn-market-v6-funding-info span {
  font-size:9px;
  line-height:1.4;
}

.dn-market-v6-funding-info strong {
  margin-top:2px;
  font-size:13px;
  line-height:1.5;
  font-weight:800;
}


/* --------------------------------
   CREDIT / RISK ICONS
-------------------------------- */

.dn-market-v6-inline-label {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
}

.dn-market-v6-inline-label svg {
  width:15px;
  height:15px;
  flex:0 0 15px;
}


/* Credit = blue */

.dn-market-v6-risk > div:first-child .dn-market-v6-inline-label {
  color:#327cdf;
}

.dn-market-v6-risk > div:first-child .dn-market-v6-inline-label svg {
  color:#327cdf;
  stroke:currentColor;
}


/* Risk = according to risk level */

.dn-market-v6-risk > div:last-child .dn-market-v6-inline-label {
  color:#d97706;
}

.dn-market-v6-risk > div:last-child .dn-market-v6-inline-label svg {
  color:#d97706;
  stroke:currentColor;
}

.dn-market-v6-risk > div:last-child .dn-risk-low {
  color:#16a34a;
}

.dn-market-v6-risk > div:last-child .dn-risk-medium {
  color:#d97706;
}

.dn-market-v6-risk > div:last-child .dn-risk-high {
  color:#dc2626;
}


/* --------------------------------
   REMOVE OLD SYMBOL COLORS
-------------------------------- */

.dn-credit-symbol,
.dn-risk-symbol {
  color:inherit !important;
}


/* --------------------------------
   CARD — LIGHTER / MINIMAL
-------------------------------- */

.dn-market-card-v6 {
  box-shadow:0 3px 14px rgba(15,23,42,.035);
}

/* VALORA_MARKET_FUNDING_UI_V11_1_START */

/*
  Final compact funding section
  RIGHT  = total project amount
  CENTER = funding progress
  LEFT   = funded amount
*/

.dn-market-v6-funding {
  display:grid !important;

  grid-template-columns:
    minmax(0,1fr)
    50px
    minmax(0,1fr) !important;

  align-items:center !important;

  column-gap:10px !important;

  margin-top:10px !important;

  padding:8px 12px !important;

  min-height:64px !important;

  border-radius:14px !important;

  border:1px solid rgba(22,36,58,.065) !important;

  background:#fff !important;

  direction:ltr !important;
}


/* ===============================
   TOTAL AMOUNT — RIGHT
================================ */

.dn-market-v6-funding-total {
  display:block !important;

  grid-column:3 !important;

  direction:rtl !important;

  text-align:right !important;

  min-width:0;
}


/* ===============================
   PROGRESS — CENTER
================================ */

.dn-market-v6-funding-progress {
  display:flex !important;

  grid-column:2 !important;

  align-items:center !important;

  justify-content:center !important;

  order:initial !important;
}


.dn-market-v6-circle {
  width:50px !important;

  height:50px !important;

  flex:0 0 50px !important;
}


.dn-market-v6-circle:before {
  width:38px !important;

  height:38px !important;
}


.dn-market-v6-circle span {
  font-size:10px !important;

  line-height:1 !important;

  font-weight:800 !important;
}


/* ===============================
   FUNDED AMOUNT — LEFT
================================ */

.dn-market-v6-funding-raised {
  display:block !important;

  grid-column:1 !important;

  direction:rtl !important;

  text-align:left !important;

  min-width:0;
}


/* important:
   overrides old compact rule:
   .dn-market-v6-funding-info:last-child { display:none; }
*/

.dn-market-v6-funding-info:last-child {
  display:block !important;
}


/* ===============================
   TYPOGRAPHY
================================ */

.dn-market-v6-funding-info span {
  display:block !important;

  margin:0 0 2px !important;

  font-size:9.5px !important;

  line-height:1.35 !important;

  color:#7b8798 !important;
}


.dn-market-v6-funding-info strong {
  display:block !important;

  margin:0 !important;

  font-size:13px !important;

  line-height:1.45 !important;

  font-weight:800 !important;

  white-space:nowrap !important;

  color:#253343 !important;
}


/* funded amount receives subtle visual emphasis */

.dn-market-v6-funding-raised strong {
  color:#15803d !important;
}


.dn-market-v6-funding-raised span {
  color:#6b7280 !important;
}


/* ===============================
   SMALL SCREENS
================================ */

@media (max-width:420px) {

  .dn-market-v6-funding {
    grid-template-columns:
      minmax(0,1fr)
      46px
      minmax(0,1fr) !important;

    column-gap:7px !important;

    padding:8px 9px !important;

    min-height:60px !important;
  }


  .dn-market-v6-funding-total {
    grid-column:3 !important;

    text-align:right !important;
  }


  .dn-market-v6-funding-progress {
    grid-column:2 !important;

    order:initial !important;
  }


  .dn-market-v6-funding-raised {
    grid-column:1 !important;

    text-align:left !important;
  }


  .dn-market-v6-circle {
    width:46px !important;

    height:46px !important;

    flex-basis:46px !important;
  }


  .dn-market-v6-circle:before {
    width:35px !important;

    height:35px !important;
  }


  .dn-market-v6-funding-info strong {
    font-size:11.5px !important;
  }


  .dn-market-v6-funding-info span {
    font-size:8.5px !important;
  }

}

/* VALORA_MARKET_FUNDING_UI_V11_1_END */

/* VALORA_MARKET_FUNDING_UI_V11_2_START */

/* Final alignment + compact polish */

.dn-market-v6-funding {
  grid-template-columns:
    minmax(0,1fr)
    58px
    minmax(0,1fr) !important;

  align-items:center !important;

  column-gap:12px !important;

  padding:6px 12px !important;

  min-height:58px !important;
}


/* Both financial text blocks sit on exactly the same baseline */

.dn-market-v6-funding-total,
.dn-market-v6-funding-raised {
  display:flex !important;

  flex-direction:column !important;

  justify-content:center !important;

  min-height:42px !important;

  align-self:center !important;
}


.dn-market-v6-funding-total {
  grid-column:3 !important;

  text-align:right !important;

  align-items:flex-start !important;
}


.dn-market-v6-funding-raised {
  grid-column:1 !important;

  text-align:left !important;

  align-items:flex-end !important;
}


/* Exact typography rhythm */

.dn-market-v6-funding-info span {
  margin:0 0 1px !important;

  line-height:1.25 !important;

  font-size:9px !important;
}


.dn-market-v6-funding-info strong {
  margin:0 !important;

  line-height:1.35 !important;

  font-size:13px !important;
}


/* Larger center progress */

.dn-market-v6-funding-progress {
  grid-column:2 !important;

  display:flex !important;

  align-items:center !important;

  justify-content:center !important;
}


.dn-market-v6-circle {
  width:58px !important;

  height:58px !important;

  flex:0 0 58px !important;
}


.dn-market-v6-circle:before {
  width:44px !important;

  height:44px !important;
}


.dn-market-v6-circle span {
  font-size:10.5px !important;

  font-weight:800 !important;
}


/* make sure legacy rule never hides funded amount */

.dn-market-v6-funding-info:last-child {
  display:flex !important;
}


/* Mobile */

@media (max-width:420px) {

  .dn-market-v6-funding {
    grid-template-columns:
      minmax(0,1fr)
      52px
      minmax(0,1fr) !important;

    column-gap:7px !important;

    padding:5px 9px !important;

    min-height:54px !important;
  }


  .dn-market-v6-circle {
    width:52px !important;

    height:52px !important;

    flex-basis:52px !important;
  }


  .dn-market-v6-circle:before {
    width:39px !important;

    height:39px !important;
  }


  .dn-market-v6-funding-total,
  .dn-market-v6-funding-raised {
    min-height:38px !important;
  }


  .dn-market-v6-funding-info strong {
    font-size:11.5px !important;
  }

}

/* VALORA_MARKET_FUNDING_UI_V11_2_END */

/* VALORA_MARKET_FUNDING_UI_V11_3_START */

/*
  HARD LAYOUT LOCK
  1 row / 3 columns:
  LEFT   = funded
  CENTER = progress
  RIGHT  = total
*/

.dn-market-v6-funding {
  display:grid !important;

  grid-template-columns:
    minmax(0,1fr)
    64px
    minmax(0,1fr) !important;

  grid-template-rows:64px !important;

  align-items:center !important;
  justify-items:stretch !important;

  column-gap:12px !important;
  row-gap:0 !important;

  padding:4px 12px !important;
  margin-top:10px !important;

  min-height:0 !important;
  height:74px !important;

  direction:ltr !important;
}


/* ===== RIGHT: total ===== */

.dn-market-v6-funding-total {
  display:flex !important;

  grid-column:3 !important;
  grid-row:1 !important;

  align-self:center !important;

  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;

  width:100% !important;
  height:auto !important;
  min-height:0 !important;

  margin:0 !important;
  padding:0 !important;

  direction:rtl !important;
  text-align:right !important;
}


/* ===== CENTER: progress ===== */

.dn-market-v6-funding-progress {
  display:flex !important;

  grid-column:2 !important;
  grid-row:1 !important;

  align-self:center !important;
  justify-self:center !important;

  align-items:center !important;
  justify-content:center !important;

  width:64px !important;
  height:64px !important;

  margin:0 !important;
  padding:0 !important;

  order:0 !important;
}


/* ===== LEFT: funded ===== */

.dn-market-v6-funding-raised,
.dn-market-v6-funding-info:last-child {
  display:flex !important;

  grid-column:1 !important;
  grid-row:1 !important;

  align-self:center !important;

  flex-direction:column !important;
  align-items:flex-end !important;
  justify-content:center !important;

  width:100% !important;
  height:auto !important;
  min-height:0 !important;

  margin:0 !important;
  padding:0 !important;

  direction:rtl !important;
  text-align:left !important;
}


/* ===== SAME TYPOGRAPHY BASELINE ===== */

.dn-market-v6-funding-total span,
.dn-market-v6-funding-raised span {
  display:block !important;

  margin:0 0 2px !important;
  padding:0 !important;

  font-size:9px !important;
  line-height:1.25 !important;

  white-space:nowrap !important;
}


.dn-market-v6-funding-total strong,
.dn-market-v6-funding-raised strong {
  display:block !important;

  margin:0 !important;
  padding:0 !important;

  font-size:13px !important;
  line-height:1.35 !important;

  white-space:nowrap !important;
}


/* funded = subtle green */

.dn-market-v6-funding-raised strong {
  color:#15803d !important;
}


/* ===== LARGER CENTER CIRCLE ===== */

.dn-market-v6-circle {
  width:64px !important;
  height:64px !important;

  min-width:64px !important;
  min-height:64px !important;

  flex:0 0 64px !important;

  margin:0 !important;
}


.dn-market-v6-circle:before {
  width:48px !important;
  height:48px !important;
}


.dn-market-v6-circle span {
  font-size:11px !important;
  line-height:1 !important;
}


/*
  Kill old responsive one-column layout.
  Keep same 3-column concept even on narrow card.
*/

@media (max-width:700px) {

  .dn-market-v6-funding {
    grid-template-columns:
      minmax(0,1fr)
      58px
      minmax(0,1fr) !important;

    grid-template-rows:58px !important;

    height:68px !important;

    padding:4px 9px !important;
    column-gap:7px !important;
  }


  .dn-market-v6-funding-total {
    grid-column:3 !important;
    grid-row:1 !important;

    align-items:flex-start !important;
    text-align:right !important;
  }


  .dn-market-v6-funding-progress {
    grid-column:2 !important;
    grid-row:1 !important;

    width:58px !important;
    height:58px !important;

    order:0 !important;
  }


  .dn-market-v6-funding-raised,
  .dn-market-v6-funding-info:last-child {
    grid-column:1 !important;
    grid-row:1 !important;

    align-items:flex-end !important;
    text-align:left !important;
  }


  .dn-market-v6-circle {
    width:58px !important;
    height:58px !important;

    min-width:58px !important;
    min-height:58px !important;

    flex-basis:58px !important;
  }


  .dn-market-v6-circle:before {
    width:44px !important;
    height:44px !important;
  }


  .dn-market-v6-funding-info strong {
    font-size:11.5px !important;
  }

}


/* VALORA_MARKET_FUNDING_UI_V11_3_END */

/* VALORA_MARKET_FUNDING_UI_V11_4_START */

/* Final centering of financial side columns */

.dn-market-v6-funding-total,
.dn-market-v6-funding-raised,
.dn-market-v6-funding-info:last-child {

  align-items:center !important;

  justify-content:center !important;

  text-align:center !important;
}


.dn-market-v6-funding-total span,
.dn-market-v6-funding-total strong,
.dn-market-v6-funding-raised span,
.dn-market-v6-funding-raised strong {

  width:100% !important;

  text-align:center !important;
}


/* keep hard grid positions */

.dn-market-v6-funding-total {
  grid-column:3 !important;
  grid-row:1 !important;
}


.dn-market-v6-funding-progress {
  grid-column:2 !important;
  grid-row:1 !important;
}


.dn-market-v6-funding-raised,
.dn-market-v6-funding-info:last-child {
  grid-column:1 !important;
  grid-row:1 !important;
}


/* VALORA_MARKET_FUNDING_UI_V11_4_END */

/* ============================================================
   VALORA_PORTAL_PASSWORD_CHANGE_V18
   Investor / issuer self-service password change
============================================================ */
.dn-profile-password {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  color: var(--dn-ink);
  background: #f7f9fc;
  border: 1px solid var(--dn-line);
  border-radius: 10px;
  font-weight: 700;
  text-align: right;
}
.dn-profile-password:hover { background: #f1f5fa; }

.dn-password-change-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(18, 24, 43, .48);
  backdrop-filter: blur(2px);
}
.dn-password-change-modal {
  width: min(420px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--dn-line);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(18, 24, 43, .25);
}
.dn-password-change-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.dn-password-change-head h3 {
  margin: 0;
  font-size: 16px;
}
.dn-password-change-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--dn-line);
  border-radius: 10px;
  background: #fff;
  color: var(--dn-muted);
  font-size: 23px;
  line-height: 1;
}
.dn-password-change-body .dn-field:last-of-type {
  margin-bottom: 8px;
}
.dn-password-change-body input {
  width: 100%;
  text-align: left;
}
.dn-password-change-hint {
  margin-top: 4px;
  color: var(--dn-muted);
  font-size: 11.5px;
  line-height: 1.9;
}
.dn-password-change-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin-top: 18px;
}
.dn-password-change-actions .dn-btn {
  width: 100%;
}
@media (max-width: 390px) {
  .dn-password-change-modal { padding: 15px; }
  .dn-password-change-actions { grid-template-columns: 1fr; }
}


/* VALORA_PASSWORD_MODAL_REDESIGN_V19_STYLES
   Approved premium redesign for the shared investor/issuer password modal.
   Keeps the V18 password-change behavior intact. */
.dn-password-change-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.54);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}

.dn-password-change-modal,
.dn-password-change-modal * {
  box-sizing: border-box;
}

.dn-password-change-modal {
  width: min(560px, calc(100vw - 48px));
  max-width: 560px;
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 30px 32px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  direction: rtl;
  text-align: right;
  background: #ffffff;
  border: 1px solid rgba(215, 222, 232, 0.92);
  border-radius: 22px;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.25),
    0 4px 16px rgba(15, 23, 42, 0.08);
}

.dn-password-change-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 0;
  border: 0;
}

.dn-password-change-head h3 {
  margin: 0;
  color: #172033;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.2px;
}

.dn-password-change-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  padding: 0;
  color: #667085;
  background: #f8fafc;
  border: 1px solid #e7ebf0;
  border-radius: 11px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.dn-password-change-close:hover {
  color: #172033;
  background: #f1f5f9;
  border-color: #d8dee8;
}

.dn-password-change-close:active {
  transform: scale(0.96);
}

.dn-password-change-subtitle {
  margin: 8px 0 25px;
  color: #667085;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.9;
}

.dn-password-change-body {
  margin: 0;
}

.dn-password-change-body .dn-field,
.dn-password-change-field {
  position: relative;
  display: block;
  margin: 0 0 18px;
}

.dn-password-change-body .dn-field:last-of-type {
  margin-bottom: 0;
}

.dn-password-change-body .dn-field > label,
.dn-password-change-body label {
  display: block;
  margin: 0 0 8px;
  color: #273244;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
}

.dn-password-change-body input {
  width: 100%;
  height: 52px;
  min-height: 52px;
  margin: 0;
  padding: 0 48px 0 15px;
  direction: ltr;
  text-align: right;
  color: #172033;
  background: #ffffff;
  border: 1px solid #d7dee8;
  border-radius: 12px;
  outline: none;
  font: inherit;
  font-size: 15px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.dn-password-change-body input:hover {
  border-color: #b9c4d2;
}

.dn-password-change-body input:focus {
  background: #ffffff;
  border-color: #327cdf;
  box-shadow: 0 0 0 3px rgba(50, 124, 223, 0.12);
}

.dn-password-visibility-toggle {
  position: absolute;
  left: 11px;
  bottom: 8px;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  padding: 0;
  color: #7a8798;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.dn-password-visibility-toggle:hover,
.dn-password-visibility-toggle.is-visible {
  color: #253343;
  background: #f3f6fa;
}

.dn-password-visibility-toggle:focus-visible {
  outline: 2px solid rgba(50, 124, 223, 0.55);
  outline-offset: 1px;
}

.dn-password-visibility-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.dn-password-change-hint {
  position: relative;
  margin: 18px 0 0;
  padding: 12px 42px 12px 14px;
  color: #5f6b7c;
  background: #f8fafc;
  border: 1px solid #edf1f5;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.9;
}

.dn-password-change-hint::before {
  content: "✓";
  position: absolute;
  top: 50%;
  right: 13px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: #327cdf;
  background: rgba(50, 124, 223, 0.10);
  border: 1px solid rgba(50, 124, 223, 0.22);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 900;
}

.dn-password-change-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
}

.dn-password-change-actions .dn-btn {
  width: 100%;
  min-width: 0;
  height: 50px;
  min-height: 50px;
  margin: 0;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.dn-password-change-actions .dn-btn-primary {
  color: #ffffff;
  background: #172b4d;
  border: 1px solid #172b4d;
  box-shadow: 0 8px 18px rgba(23, 43, 77, 0.16);
}

.dn-password-change-actions .dn-btn-primary:hover {
  background: #10213d;
  border-color: #10213d;
  box-shadow: 0 10px 22px rgba(23, 43, 77, 0.20);
}

.dn-password-change-actions .dn-btn-outline {
  color: #253343;
  background: #ffffff;
  border: 1px solid #cfd7e2;
  box-shadow: none;
}

.dn-password-change-actions .dn-btn-outline:hover {
  background: #f8fafc;
  border-color: #aebaca;
}

.dn-password-change-actions .dn-btn:active {
  transform: translateY(1px);
}

@media (max-width: 640px) {
  .dn-password-change-overlay {
    align-items: flex-start;
    padding: 14px;
  }

  .dn-password-change-modal {
    width: 100%;
    max-width: none;
    max-height: calc(100vh - 28px);
    padding: 24px 20px 20px;
    border-radius: 18px;
  }

  .dn-password-change-head h3 {
    font-size: 21px;
  }

  .dn-password-change-subtitle {
    margin-bottom: 20px;
  }

  .dn-password-change-actions {
    grid-template-columns: 1fr;
  }

  .dn-password-change-actions .dn-btn-primary {
    order: -1;
  }
}

/* VALORA_ISSUER_MY_NOTES_MINIMAL_V1_BEGIN */

#dn-app.dn-role-issuer .dn-issuer-notes-heading {
  margin-bottom: 16px;
}

#dn-app.dn-role-issuer .dn-issuer-notes-heading h2 {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}

#dn-app.dn-role-issuer .dn-issuer-notes-heading p {
  margin: 0;
  color: var(--dn-muted);
  font-size: 12px;
  line-height: 1.8;
}

#dn-app.dn-role-issuer .dn-issuer-note-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(170px, .7fr);
  gap: 10px;
  margin-bottom: 8px;
}

#dn-app.dn-role-issuer .dn-issuer-note-toolbar label {
  display: block;
  margin: 0;
}

#dn-app.dn-role-issuer .dn-issuer-note-toolbar label > span {
  display: block;
  margin-bottom: 5px;
  color: var(--dn-muted);
  font-size: 10.5px;
  font-weight: 650;
}

#dn-app.dn-role-issuer .dn-issuer-note-toolbar input,
#dn-app.dn-role-issuer .dn-issuer-note-toolbar select {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid rgba(124, 63, 11, .14);
  border-radius: 10px;
  background: rgba(255, 252, 248, .84);
  color: var(--dn-ink);
  font: inherit;
  font-size: 12px;
  outline: none;
}

#dn-app.dn-role-issuer .dn-issuer-note-toolbar input:focus,
#dn-app.dn-role-issuer .dn-issuer-note-toolbar select:focus {
  border-color: rgba(173, 126, 35, .55);
  box-shadow: 0 0 0 3px rgba(184, 137, 43, .08);
}

#dn-app.dn-role-issuer .dn-issuer-note-result-info {
  margin: 0 2px 10px;
  color: var(--dn-muted);
  font-size: 10.5px;
}

#dn-app.dn-role-issuer .dn-issuer-notes-list {
  display: grid;
  gap: 10px;
}

#dn-app.dn-role-issuer .dn-issuer-note-card {
  margin: 0;
  padding: 15px 16px 12px;
  border-color: rgba(124, 63, 11, .09);
  box-shadow: 0 4px 16px rgba(68, 40, 17, .035);
  background:
    linear-gradient(
      180deg,
      rgba(255, 250, 245, .50),
      rgba(255, 255, 255, .98) 30%
    );
}

#dn-app.dn-role-issuer .dn-issuer-note-card:hover {
  border-color: rgba(124, 63, 11, .15);
}

#dn-app.dn-role-issuer .dn-issuer-note-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#dn-app.dn-role-issuer .dn-issuer-note-title {
  min-width: 0;
}

#dn-app.dn-role-issuer .dn-issuer-note-title h3 {
  margin: 0;
  color: var(--dn-ink);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.6;
}

#dn-app.dn-role-issuer .dn-issuer-note-id {
  display: block;
  margin-top: 2px;
  color: var(--dn-muted);
  font-size: 10.5px;
  direction: ltr;
  text-align: right;
}

#dn-app.dn-role-issuer .dn-issuer-note-facts {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(124, 63, 11, .07);
}

#dn-app.dn-role-issuer .dn-issuer-note-facts > div {
  min-width: 0;
}

#dn-app.dn-role-issuer .dn-issuer-note-facts span {
  display: block;
  margin-bottom: 3px;
  color: var(--dn-muted);
  font-size: 10px;
}

#dn-app.dn-role-issuer .dn-issuer-note-facts strong {
  display: block;
  color: var(--dn-ink);
  font-size: 12.5px;
  font-weight: 730;
  line-height: 1.6;
}

#dn-app.dn-role-issuer .dn-issuer-note-funding {
  margin-top: 13px;
}

#dn-app.dn-role-issuer .dn-issuer-note-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--dn-muted);
  font-size: 10.5px;
}

#dn-app.dn-role-issuer .dn-issuer-note-progress-meta strong {
  color: var(--dn-ink-2);
  font-weight: 700;
}

#dn-app.dn-role-issuer .dn-issuer-note-progress-meta b {
  flex: 0 0 auto;
  color: #7c3f0b;
  font-size: 11px;
}

#dn-app.dn-role-issuer .dn-issuer-note-progress {
  height: 5px;
  margin: 0;
  background: rgba(124, 63, 11, .09);
}

#dn-app.dn-role-issuer .dn-issuer-note-progress .dn-progress-fill {
  background: var(--dn-gold);
}

#dn-app.dn-role-issuer .dn-issuer-note-details {
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid rgba(124, 63, 11, .07);
}

#dn-app.dn-role-issuer .dn-issuer-note-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  color: #7c3f0b;
  font-size: 11.5px;
  font-weight: 720;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

#dn-app.dn-role-issuer .dn-issuer-note-details summary::-webkit-details-marker {
  display: none;
}

#dn-app.dn-role-issuer .dn-issuer-note-details-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #7c3f0b;
  font-size: 18px;
  transition: transform 140ms ease;
}

#dn-app.dn-role-issuer .dn-issuer-note-details[open]
  .dn-issuer-note-details-arrow {
  transform: rotate(-90deg);
}

#dn-app.dn-role-issuer .dn-issuer-note-details-body {
  padding-top: 12px;
}

#dn-app.dn-role-issuer .dn-issuer-note-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

#dn-app.dn-role-issuer .dn-issuer-note-detail-row {
  min-width: 0;
  padding: 9px 0;
  border-bottom: 1px solid rgba(124, 63, 11, .055);
}

#dn-app.dn-role-issuer .dn-issuer-note-detail-row span,
#dn-app.dn-role-issuer .dn-issuer-note-detail-row small {
  display: block;
  color: var(--dn-muted);
  font-size: 10px;
  line-height: 1.7;
}

#dn-app.dn-role-issuer .dn-issuer-note-detail-row strong {
  display: block;
  margin-top: 2px;
  color: var(--dn-ink);
  font-size: 11.5px;
  font-weight: 680;
  line-height: 1.7;
}

#dn-app.dn-role-issuer .dn-issuer-note-detail-row small {
  margin-top: 2px;
}

#dn-app.dn-role-issuer .dn-issuer-note-rejection {
  margin-bottom: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(185, 28, 28, .12);
  border-radius: 10px;
  background: rgba(254, 242, 242, .56);
}

#dn-app.dn-role-issuer .dn-issuer-note-rejection span {
  display: block;
  margin-bottom: 3px;
  color: var(--dn-red);
  font-size: 10px;
  font-weight: 700;
}

#dn-app.dn-role-issuer .dn-issuer-note-rejection strong {
  display: block;
  color: var(--dn-ink-2);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.8;
}

#dn-app.dn-role-issuer .dn-issuer-note-empty {
  margin: 0;
}

@media (max-width: 520px) {
  #dn-app.dn-role-issuer .dn-issuer-note-toolbar {
    grid-template-columns: 1fr;
  }

  #dn-app.dn-role-issuer .dn-issuer-note-card {
    padding: 14px;
  }

  #dn-app.dn-role-issuer .dn-issuer-note-facts {
    gap: 18px;
  }

  #dn-app.dn-role-issuer .dn-issuer-note-details-grid {
    grid-template-columns: 1fr;
  }

  #dn-app.dn-role-issuer .dn-issuer-note-progress-meta {
    align-items: flex-start;
  }
}

/* VALORA_ISSUER_MY_NOTES_MINIMAL_V1_END */

#dn-app.dn-role-issuer .dn-issuer-note-export {
  align-self: end;
  min-height: 42px;
  white-space: nowrap;
}

@media (max-width: 520px) {
  #dn-app.dn-role-issuer .dn-issuer-note-export {
    width: 100%;
  }
}

/* MY NOTES HEADER EXPORT POSITION */
#dn-app.dn-role-issuer .dn-issuer-notes-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#dn-app.dn-role-issuer
  .dn-issuer-notes-heading
  .dn-issuer-note-export {
  flex: 0 0 auto;
  margin-inline-start: auto;
  align-self: center;
}

@media (max-width: 520px) {
  #dn-app.dn-role-issuer .dn-issuer-notes-heading {
    align-items: center;
  }

  #dn-app.dn-role-issuer
    .dn-issuer-notes-heading
    .dn-issuer-note-export {
    width: auto;
  }
}

/* ISSUER MY NOTES MARKET TYPOGRAPHY */

/* Same typography stack as Market */
#dn-app.dn-role-issuer .dn-issuer-note-card,
#dn-app.dn-role-issuer .dn-issuer-note-card * {
  font-family:
    'Vazirmatn',
    'IRANSansX',
    'IRANSans',
    Tahoma,
    'Segoe UI',
    sans-serif;
}

/* Summary metrics: same 3-column rhythm as Market */
#dn-app.dn-role-issuer .dn-issuer-note-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  align-items: stretch;
  direction: rtl;
}

#dn-app.dn-role-issuer .dn-issuer-note-facts > div {
  min-width: 0;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#dn-app.dn-role-issuer .dn-issuer-note-facts span {
  display: block;
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--dn-muted);
  text-align: center;
}

#dn-app.dn-role-issuer .dn-issuer-note-facts strong {
  display: block;
  margin-top: 4px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
  color: var(--dn-ink);
  text-align: center;
  white-space: nowrap;
}

/* Do not let numeric helper change the card typography */
#dn-app.dn-role-issuer .dn-issuer-note-facts .dn-num {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* Card title follows Market hierarchy */
#dn-app.dn-role-issuer .dn-issuer-note-title h3 {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 800;
}

/* Funding typography aligned with Market funding block */
#dn-app.dn-role-issuer .dn-issuer-note-progress-meta {
  font-family: inherit;
}

#dn-app.dn-role-issuer .dn-issuer-note-progress-meta span {
  font-size: 9.5px;
  line-height: 1.35;
  color: #7b8798;
}

#dn-app.dn-role-issuer .dn-issuer-note-progress-meta strong,
#dn-app.dn-role-issuer .dn-issuer-note-progress-meta b {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}

/* Details row typography */
#dn-app.dn-role-issuer .dn-issuer-note-details summary {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 420px) {
  #dn-app.dn-role-issuer .dn-issuer-note-facts {
    gap: 6px;
  }

  #dn-app.dn-role-issuer .dn-issuer-note-facts > div {
    padding: 7px 4px;
  }

  #dn-app.dn-role-issuer .dn-issuer-note-facts span {
    font-size: 9px;
  }

  #dn-app.dn-role-issuer .dn-issuer-note-facts strong {
    font-size: 12px;
  }
}

/* ISSUER MY NOTES SUMMARY FINAL TYPOGRAPHY */

/* Summary labels: bold */
#dn-app.dn-role-issuer .dn-issuer-note-facts > div > span {
  display: block;
  margin: 0;
  font-family: inherit !important;
  font-size: 10px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  color: var(--dn-muted) !important;
  text-align: center;
}

/* Summary values: exactly aligned with Market KPI numbers */
#dn-app.dn-role-issuer .dn-issuer-note-facts > div > strong {
  display: block;
  margin-top: 4px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-weight: 800 !important;
  color: var(--dn-ink) !important;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0 !important;
  font-variant-numeric: tabular-nums;
}

/* Money formatter must not override Market-like number typography */
#dn-app.dn-role-issuer .dn-issuer-note-facts strong .dn-num,
#dn-app.dn-role-issuer .dn-issuer-note-facts strong .dn-money,
#dn-app.dn-role-issuer .dn-issuer-note-facts strong .dn-money-value,
#dn-app.dn-role-issuer .dn-issuer-note-facts strong .dn-money-unit {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  letter-spacing: 0 !important;
}

/* Keep amount + unit visually in one line */
#dn-app.dn-role-issuer .dn-issuer-note-facts strong .dn-money {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  direction: rtl;
}

@media (max-width: 420px) {
  #dn-app.dn-role-issuer .dn-issuer-note-facts > div > span {
    font-size: 9px !important;
    font-weight: 700 !important;
  }

  #dn-app.dn-role-issuer .dn-issuer-note-facts > div > strong {
    font-size: 12px !important;
  }
}

/* ISSUER NOMINAL AMOUNT MARKET COLOR */

/* Nominal amount value: same dark hierarchy as Market */
#dn-app.dn-role-issuer
  .dn-issuer-note-facts > div:first-child > strong {
  color: var(--dn-ink) !important;
}

/* Numeric/value part must not inherit muted money color */
#dn-app.dn-role-issuer
  .dn-issuer-note-facts > div:first-child > strong.dn-num,
#dn-app.dn-role-issuer
  .dn-issuer-note-facts > div:first-child > strong .dn-num,
#dn-app.dn-role-issuer
  .dn-issuer-note-facts > div:first-child > strong .dn-money-value {
  color: var(--dn-ink) !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}

/* Currency unit remains secondary */
#dn-app.dn-role-issuer
  .dn-issuer-note-facts > div:first-child > strong .dn-money-unit {
  color: #6b7280 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

/* ISSUER EXCEL EXPORT ICON */
#dn-app.dn-role-issuer .dn-issuer-note-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#dn-app.dn-role-issuer .dn-issuer-excel-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: #107c41;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ISSUER EXCEL EXPORT ICON ONLY */
#dn-app.dn-role-issuer .dn-issuer-note-export {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

#dn-app.dn-role-issuer .dn-issuer-export-icon-stack {
  position: relative;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#dn-app.dn-role-issuer .dn-issuer-excel-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #107c41;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#dn-app.dn-role-issuer .dn-issuer-download-icon {
  position: absolute;
  left: -4px;
  bottom: -4px;
  width: 11px;
  height: 11px;
  fill: none;
  stroke: #107c41;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: #fff;
  border-radius: 999px;
}

/* ISSUER EXCEL EXPORT BADGE STYLE */
#dn-app.dn-role-issuer .dn-issuer-note-export {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#dn-app.dn-role-issuer .dn-issuer-export-icon-stack {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#dn-app.dn-role-issuer .dn-issuer-excel-badge {
  width: 26px;
  height: 26px;
  display: block;
}

/* ISSUER NEW NOTE HEADER ACTION */
#dn-app.dn-role-issuer .dn-issuer-notes-heading {
  flex-wrap: wrap;
}

#dn-app.dn-role-issuer .dn-issuer-new-note {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 700;
  margin-inline-start: auto;
}

#dn-app.dn-role-issuer .dn-issuer-new-note + .dn-issuer-note-export {
  margin-inline-start: 6px;
}

/* ISSUER MY NOTES HEADER ACTION LAYOUT V2 */

/* ---------------------------------------------------------
   Header:
   Excel + New Note stay together on the left,
   exactly opposite the page title.
   --------------------------------------------------------- */

#dn-app.dn-role-issuer .dn-issuer-notes-heading {
  display: grid !important;
  grid-template-columns: 40px auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "excel newnote title"
    "excel newnote description";
  column-gap: 8px;
  row-gap: 3px;
  align-items: center;
  width: 100%;
  direction: ltr;
  margin-bottom: 20px;
}

/* title */
#dn-app.dn-role-issuer .dn-issuer-notes-heading > h2 {
  grid-area: title;
  direction: rtl;
  text-align: right;
  justify-self: stretch;
  margin: 0 !important;
}

/* description */
#dn-app.dn-role-issuer .dn-issuer-notes-heading > p {
  grid-area: description;
  direction: rtl;
  text-align: right;
  justify-self: stretch;
  margin: 0 !important;
}

/* + سند جدید */
#dn-app.dn-role-issuer .dn-issuer-notes-heading > .dn-issuer-new-note {
  grid-area: newnote;
  direction: rtl;
  align-self: center;
  justify-self: start;
  margin: 0 !important;
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

/* Excel */
#dn-app.dn-role-issuer .dn-issuer-notes-heading > .dn-issuer-note-export {
  grid-area: excel;
  align-self: center;
  justify-self: start;
  margin: 0 !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
}

/* ---------------------------------------------------------
   Search + Status
   --------------------------------------------------------- */

#dn-app.dn-role-issuer .dn-issuer-note-toolbar {
  gap: 12px;
  align-items: end;
  margin-top: 0;
  margin-bottom: 8px;
}

#dn-app.dn-role-issuer .dn-issuer-note-toolbar label {
  gap: 6px;
}

#dn-app.dn-role-issuer .dn-issuer-note-toolbar label > span {
  color: #344054 !important;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700 !important;
}

/* input/select text also slightly clearer */
#dn-app.dn-role-issuer .dn-issuer-note-toolbar input,
#dn-app.dn-role-issuer .dn-issuer-note-toolbar select {
  color: #202939;
  font-weight: 500;
}

/* ---------------------------------------------------------
   Result count
   --------------------------------------------------------- */

#dn-app.dn-role-issuer .dn-issuer-note-result-info {
  margin-top: 8px;
  margin-bottom: 10px;
  color: #475467 !important;
  font-size: 11.5px;
  line-height: 1.5;
  font-weight: 600 !important;
  text-align: right;
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 520px) {

  #dn-app.dn-role-issuer .dn-issuer-notes-heading {
    grid-template-columns: 40px auto minmax(0, 1fr);
    column-gap: 7px;
    margin-bottom: 16px;
  }

  #dn-app.dn-role-issuer .dn-issuer-notes-heading > .dn-issuer-new-note {
    width: auto !important;
    min-width: 0;
    padding-inline: 12px;
  }

  #dn-app.dn-role-issuer .dn-issuer-notes-heading > .dn-issuer-note-export {
    width: 40px !important;
  }

  #dn-app.dn-role-issuer .dn-issuer-note-toolbar {
    gap: 10px;
  }
}

/* ISSUER MY NOTES HEADER ACTION LAYOUT V3 */

/* ---------------------------------------------------------
   Restore title to its original right-side position.
   Actions remain a separate group on the left.
   --------------------------------------------------------- */

#dn-app.dn-role-issuer .dn-issuer-notes-heading {
  position: relative !important;
  display: block !important;
  width: 100%;
  min-height: 68px;
  padding-left: 158px;
  margin-bottom: 18px;
  direction: rtl;
}

#dn-app.dn-role-issuer .dn-issuer-notes-heading > h2 {
  position: static !important;
  display: block;
  width: auto;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  text-align: right !important;
  direction: rtl;
}

#dn-app.dn-role-issuer .dn-issuer-notes-heading > p {
  position: static !important;
  display: block;
  width: auto;
  margin: 0 !important;
  padding: 0 !important;
  text-align: right !important;
  direction: rtl;
}

/* ---------------------------------------------------------
   Action group
   --------------------------------------------------------- */

#dn-app.dn-role-issuer .dn-issuer-new-note,
#dn-app.dn-role-issuer .dn-issuer-note-export {
  position: absolute !important;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 !important;

  height: 42px !important;
  min-height: 42px !important;

  background: #18243a !important;
  border: 1px solid #18243a !important;
  border-radius: 11px !important;

  color: #fff !important;

  box-shadow:
    0 7px 18px rgba(24, 36, 58, 0.16);

  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

#dn-app.dn-role-issuer .dn-issuer-new-note {
  left: 50px;
  width: auto !important;
  min-width: 98px;
  padding: 0 14px !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

#dn-app.dn-role-issuer .dn-issuer-note-export {
  left: 0;
  width: 42px !important;
  min-width: 42px !important;
  padding: 0 !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#dn-app.dn-role-issuer .dn-issuer-new-note:hover,
#dn-app.dn-role-issuer .dn-issuer-note-export:hover {
  background: #22314d !important;

  box-shadow:
    0 9px 20px rgba(24, 36, 58, 0.22);

  transform: translateY(calc(-50% - 1px));
}

/* Excel icon inside the same button visual language */
#dn-app.dn-role-issuer .dn-issuer-note-export
  .dn-issuer-export-icon-stack {
  width: 26px;
  height: 26px;
}

#dn-app.dn-role-issuer .dn-issuer-note-export
  .dn-issuer-excel-badge {
  width: 26px;
  height: 26px;
  display: block;
}

/* ---------------------------------------------------------
   Search / Status / Result count refinement
   --------------------------------------------------------- */

#dn-app.dn-role-issuer .dn-issuer-note-toolbar label > span {
  color: #344054 !important;
  font-weight: 700 !important;
}

#dn-app.dn-role-issuer .dn-issuer-note-result-info {
  color: #475467 !important;
  font-size: 11.5px;
  font-weight: 600 !important;
  margin-top: 8px;
  margin-bottom: 10px;
  text-align: right;
}

/* ---------------------------------------------------------
   Compact mobile
   --------------------------------------------------------- */

@media (max-width: 420px) {

  #dn-app.dn-role-issuer .dn-issuer-notes-heading {
    padding-left: 145px;
    min-height: 66px;
  }

  #dn-app.dn-role-issuer .dn-issuer-new-note {
    left: 48px;
    min-width: 88px;
    padding-inline: 11px !important;
    font-size: 12px;
  }

  #dn-app.dn-role-issuer .dn-issuer-note-export {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }
}

/* ISSUER MY NOTES COLLAPSIBLE FILTERS */

#dn-app.dn-role-issuer .dn-issuer-filter-toggle {
  width: max-content;
  min-height: 38px;
  padding: 0 13px;
  margin: 0 0 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

#dn-app.dn-role-issuer .dn-issuer-filter-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#dn-app.dn-role-issuer .dn-issuer-filter-toggle[aria-expanded="true"] {
  background: #f5f7fa;
  border-color: #cfd5df;
  color: #18243a;
}

/* collapsed by default */
#dn-app.dn-role-issuer .dn-issuer-note-toolbar {
  display: none !important;
  margin-bottom: 10px;
}

/* opened filter panel */
#dn-app.dn-role-issuer .dn-issuer-note-toolbar.is-open {
  display: grid !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(150px, 0.9fr);
  gap: 12px;
  align-items: end;
  padding: 12px;
  background: #fafbfc;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
}

#dn-app.dn-role-issuer .dn-issuer-note-toolbar.is-open label {
  margin: 0;
}

@media (max-width: 420px) {
  #dn-app.dn-role-issuer .dn-issuer-note-toolbar.is-open {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ISSUER MY NOTES HEADER ACTION LAYOUT V4 */

/* Remove subtitle */
#dn-app.dn-role-issuer .dn-issuer-notes-heading > p {
  display: none !important;
}

/* Keep title in its original right-side position */
#dn-app.dn-role-issuer .dn-issuer-notes-heading {
  position: relative !important;
  display: block !important;
  min-height: 48px;
  padding-left: 250px;
  margin-bottom: 14px;
}

#dn-app.dn-role-issuer .dn-issuer-notes-heading > h2 {
  margin: 0 !important;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  direction: rtl;
  text-align: right !important;
}

/* ---------------------------------------------------------
   All three actions on one line
   --------------------------------------------------------- */

#dn-app.dn-role-issuer .dn-issuer-new-note,
#dn-app.dn-role-issuer .dn-issuer-note-export,
#dn-app.dn-role-issuer .dn-issuer-filter-toggle {
  position: absolute !important;
  top: 0 !important;
  transform: none !important;
  margin: 0 !important;

  height: 42px !important;
  min-height: 42px !important;

  border-radius: 11px !important;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
}

/* Excel */
#dn-app.dn-role-issuer .dn-issuer-note-export {
  left: 0 !important;
  width: 42px !important;
  min-width: 42px !important;
  padding: 0 !important;
}

/* New note */
#dn-app.dn-role-issuer .dn-issuer-new-note {
  left: 50px !important;
  min-width: 98px;
  padding: 0 14px !important;
}

/* Filter */
#dn-app.dn-role-issuer .dn-issuer-filter-toggle {
  left: 156px !important;
  width: 86px !important;
  min-width: 86px !important;
  padding: 0 10px !important;
  gap: 6px;

  background: #fff !important;
  border: 1px solid #d7dce4 !important;
  color: #344054 !important;

  font-size: 12px;
  font-weight: 700;
}

/* Keep primary and Excel visually related */
#dn-app.dn-role-issuer .dn-issuer-new-note,
#dn-app.dn-role-issuer .dn-issuer-note-export {
  background: #18243a !important;
  border: 1px solid #18243a !important;
  color: #fff !important;

  box-shadow:
    0 6px 16px rgba(24, 36, 58, 0.15);
}

/* Equal icon size */
#dn-app.dn-role-issuer .dn-issuer-filter-toggle svg,
#dn-app.dn-role-issuer .dn-issuer-note-export
  .dn-issuer-excel-badge {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px;
}

#dn-app.dn-role-issuer .dn-issuer-note-export
  .dn-issuer-export-icon-stack {
  width: 20px !important;
  height: 20px !important;
}

/* Remove old hover translation */
#dn-app.dn-role-issuer .dn-issuer-new-note:hover,
#dn-app.dn-role-issuer .dn-issuer-note-export:hover,
#dn-app.dn-role-issuer .dn-issuer-filter-toggle:hover {
  transform: none !important;
}

/* Open filter state */
#dn-app.dn-role-issuer
  .dn-issuer-filter-toggle[aria-expanded="true"] {
  background: #f4f6f8 !important;
  border-color: #b9c1cc !important;
  color: #18243a !important;
}

/* Filter panel stays under the header */
#dn-app.dn-role-issuer .dn-issuer-note-toolbar.is-open {
  margin-top: 0;
}

/* Mobile */
@media (max-width: 420px) {

  #dn-app.dn-role-issuer .dn-issuer-notes-heading {
    padding-left: 224px;
  }

  #dn-app.dn-role-issuer .dn-issuer-new-note {
    left: 46px !important;
    min-width: 86px;
    padding-inline: 10px !important;
    font-size: 11.5px;
  }

  #dn-app.dn-role-issuer .dn-issuer-filter-toggle {
    left: 140px !important;
    width: 78px !important;
    min-width: 78px !important;
    font-size: 11.5px;
  }

  #dn-app.dn-role-issuer .dn-issuer-note-export {
    width: 38px !important;
    min-width: 38px !important;
  }
}

/* ISSUER MY NOTES HEADER V5 */

/* Remove My Notes descriptive subtitle completely */
#dn-app.dn-role-issuer .dn-issuer-notes-heading p,
#dn-app.dn-role-issuer .dn-issuer-notes-heading .dn-page-subtitle,
#dn-app.dn-role-issuer .dn-issuer-notes-heading .dn-page-heading-subtitle {
  display: none !important;
}

/* 20% smaller action icons */
#dn-app.dn-role-issuer .dn-issuer-filter-toggle svg {
  width: 14.4px !important;
  height: 14.4px !important;
  flex: 0 0 14.4px !important;
}

#dn-app.dn-role-issuer .dn-issuer-note-export .dn-issuer-excel-badge {
  width: 14.4px !important;
  height: 14.4px !important;
}

#dn-app.dn-role-issuer .dn-issuer-note-export .dn-issuer-export-icon-stack {
  width: 16px !important;
  height: 16px !important;
}

/* Keep all action buttons vertically aligned */
#dn-app.dn-role-issuer .dn-issuer-new-note,
#dn-app.dn-role-issuer .dn-issuer-note-export,
#dn-app.dn-role-issuer .dn-issuer-filter-toggle {
  height: 42px !important;
  min-height: 42px !important;
}

/* ISSUER MY NOTES VISUAL POLISH V6 */

/* 1. Excel icon: clearer but still compact */
#dn-app.dn-role-issuer
  .dn-issuer-note-export
  .dn-issuer-excel-badge {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
}

#dn-app.dn-role-issuer
  .dn-issuer-note-export
  .dn-issuer-export-icon-stack {
  width: 20px !important;
  height: 20px !important;
}

/* 2. Result count aligned with card edge and more readable */
#dn-app.dn-role-issuer .dn-issuer-note-result-info {
  width: 100%;
  margin: 2px 0 8px !important;
  padding: 0 !important;

  direction: rtl;
  text-align: right !important;

  color: #344054 !important;
  font-size: 12px !important;
  line-height: 1.5;
  font-weight: 700 !important;
}

/* 3. Reduce excess vertical space above cards */
#dn-app.dn-role-issuer .dn-issuer-notes-heading {
  margin-top: -6px !important;
  margin-bottom: 8px !important;
  min-height: 44px !important;
}

#dn-app.dn-role-issuer .dn-issuer-note-toolbar.is-open {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

#dn-app.dn-role-issuer .dn-issuer-filter-toggle {
  margin-bottom: 0 !important;
}

/* 4. Darker money unit inside issuer note cards */
#dn-app.dn-role-issuer
  .dn-issuer-note-card
  .dn-money-unit {
  color: #475467 !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

/* ISSUER SUPPORT STABLE SIZE V1 */

/* Keep support page at a stable standard size from first render */
#dn-app.dn-role-issuer .dn-support-page-issuer {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  min-height: 620px;

  box-sizing: border-box;
  overflow-x: hidden;
}

/* Do not allow ticket list/form to change the page width */
#dn-app.dn-role-issuer .dn-support-page-issuer > *,
#dn-app.dn-role-issuer .dn-support-page-issuer .dn-card,
#dn-app.dn-role-issuer .dn-support-page-issuer .dn-grid2 {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Form controls stay inside the standard support width */
#dn-app.dn-role-issuer .dn-support-page-issuer input,
#dn-app.dn-role-issuer .dn-support-page-issuer select,
#dn-app.dn-role-issuer .dn-support-page-issuer textarea {
  max-width: 100%;
  box-sizing: border-box;
}

/* Prevent horizontal textarea resizing from stretching the portal */
#dn-app.dn-role-issuer .dn-support-page-issuer textarea {
  resize: vertical;
}

@media (max-width: 640px) {
  #dn-app.dn-role-issuer .dn-support-page-issuer {
    min-height: calc(100dvh - 180px);
  }
}

/* ISSUER SUPPORT FIXED VIEWPORT V2 */

/*
   Reserve scrollbar width from the beginning.
   Prevents the whole portal from shifting when support content gets taller.
*/
html {
  scrollbar-gutter: stable;
}

/* Desktop issuer support keeps one stable viewport size */
@media (min-width: 641px) {

  html {
    overflow-y: scroll;
  }

  #dn-app.dn-role-issuer .dn-support-page-issuer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: calc(100vh - 190px) !important;
    height: calc(100dvh - 190px) !important;

    min-height: calc(100vh - 190px) !important;
    min-height: calc(100dvh - 190px) !important;

    max-height: calc(100vh - 190px) !important;
    max-height: calc(100dvh - 190px) !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    scrollbar-gutter: stable;
    overscroll-behavior: contain;

    box-sizing: border-box;
  }

  /*
     Ticket list, new ticket form and conversation
     always stay inside the same support viewport.
  */
  #dn-app.dn-role-issuer .dn-support-page-issuer > *,
  #dn-app.dn-role-issuer .dn-support-page-issuer .dn-card,
  #dn-app.dn-role-issuer .dn-support-page-issuer .dn-grid2,
  #dn-app.dn-role-issuer .dn-support-page-issuer form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
}

/* Mobile remains naturally scrollable */
@media (max-width: 640px) {

  #dn-app.dn-role-issuer .dn-support-page-issuer {
    width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    max-height: none !important;

    min-height: calc(100dvh - 170px) !important;

    overflow-x: hidden !important;
  }
}

/* SUPPORT TICKET FILTERS V1 */

#dn-app .dn-support-filter-wrap {
  width: 100%;
  margin: 0 0 12px;
}

#dn-app .dn-support-filter-toggle {
  width: max-content;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
}

#dn-app .dn-support-filter-panel {
  display: none;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  box-sizing: border-box;

  background: #fff;
  border: 1px solid #e3e7ed;
  border-radius: 12px;
}

#dn-app .dn-support-filter-panel.is-open {
  display: block;
}

#dn-app .dn-support-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 10px;
  align-items: end;
}

#dn-app .dn-support-filter-grid .dn-field {
  margin-bottom: 0;
}

#dn-app .dn-support-filter-grid input {
  width: 100%;
  min-width: 0;
}

#dn-app .dn-support-filter-clear {
  margin-top: 10px;
  min-height: 34px;
  font-size: 11.5px;
}

@media (max-width: 640px) {
  #dn-app .dn-support-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* SUPPORT FILTER MATCH MY NOTES V2 */

/*
   Same visual dimensions/language as issuer "My Notes" filter.
   Position remains normal because support does not use the My Notes header.
*/
#dn-app.dn-role-issuer .dn-support-filter-toggle {
  width: 86px !important;
  min-width: 86px !important;
  height: 42px !important;
  min-height: 42px !important;

  padding: 0 10px !important;
  margin: 0 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;

  background: #fff !important;
  border: 1px solid #d7dce4 !important;
  border-radius: 11px !important;

  color: #344054 !important;

  font-family: inherit !important;
  font-size: 12.5px !important;
  line-height: 1 !important;
  font-weight: 700 !important;

  box-sizing: border-box !important;
}

#dn-app.dn-role-issuer .dn-support-filter-toggle:hover {
  border-color: #b9c1cc !important;
  color: #18243a !important;
}


/* Apply / Clear actions */
#dn-app .dn-support-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px;
}

#dn-app .dn-support-filter-apply,
#dn-app .dn-support-filter-clear {
  width: auto !important;
  min-height: 38px;
  margin: 0 !important;
  padding-inline: 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 420px) {
  #dn-app.dn-role-issuer .dn-support-filter-toggle {
    width: 78px !important;
    min-width: 78px !important;
    font-size: 11.5px !important;
  }

  #dn-app .dn-support-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #dn-app .dn-support-filter-apply,
  #dn-app .dn-support-filter-clear {
    width: 100% !important;
  }
}

/* CANONICAL FILTER ICON SIZE V1 */

#dn-app.dn-role-issuer .dn-issuer-filter-toggle > svg,
#dn-app.dn-role-issuer .dn-support-filter-toggle > svg {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  flex: 0 0 15px !important;

  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.7 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* VALORA_MARKET_FUNDING_GRID_FIX_V11_5 */
.dn-market-v6-funding{display:grid!important;grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr)!important;align-items:center!important;column-gap:12px!important;width:100%!important;box-sizing:border-box!important}
.dn-market-v6-funding-total,.dn-market-v6-funding-raised{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
.dn-market-v6-funding-total span,.dn-market-v6-funding-total strong,.dn-market-v6-funding-raised span,.dn-market-v6-funding-raised strong{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;text-align:center!important;box-sizing:border-box!important;overflow-wrap:anywhere!important}
.dn-market-v6-funding-progress{width:72px!important;min-width:72px!important;max-width:72px!important;justify-self:center!important;display:flex!important;align-items:center!important;justify-content:center!important}
.dn-market-v6-circle{flex:0 0 58px!important}
@media(max-width:460px){.dn-market-v6-funding{grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr)!important;column-gap:6px!important}.dn-market-v6-funding-progress{width:64px!important;min-width:64px!important;max-width:64px!important}.dn-market-v6-funding-total strong,.dn-market-v6-funding-raised strong{font-size:10.5px!important}}
/* VALORA_MY_INVESTMENTS_V14 */

.dn-myinvest-header-v14 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 18px;
}

.dn-myinvest-header-v14 h2 {
  margin: 0 0 5px;
  font-size: 20px;
}

.dn-myinvest-header-v14 p {
  margin: 0;
  color: var(--dn-muted);
  font-size: 13px;
  line-height: 1.8;
}

.dn-myinvest-count-v14 {
  flex: 0 0 auto;
  padding: 9px 13px;
  background: rgba(15, 23, 42, .04);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.dn-myinvest-toolbar-v14 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 15px 17px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 16px;
}

.dn-myinvest-searchbox-v14 {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dn-myinvest-searchbox-v14 label {
  font-size: 12px;
  font-weight: 700;
}

.dn-myinvest-search-v14 {
  width: 100%;
  min-height: 45px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 12px;
  background: #fff;
  color: var(--dn-ink);
  font: inherit;
  outline: none;
}

.dn-myinvest-search-v14:focus {
  border-color: rgba(36, 73, 111, .45);
  box-shadow: 0 0 0 3px rgba(36, 73, 111, .07);
}

.dn-myinvest-sort-v14 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(36, 73, 111, .06);
  color: #24496f;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.dn-myinvest-list-v14 {
  display: grid;
  gap: 15px;
}

.dn-myinvest-card-v14 {
  margin: 0;
  border-radius: 17px;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 5px 18px rgba(15, 23, 42, .035);
}

.dn-myinvest-card-head-v14 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.dn-myinvest-card-head-v14 h3 {
  margin: 3px 0 0;
  font-size: 15px;
}

.dn-myinvest-card-caption-v14 {
  color: var(--dn-muted);
  font-size: 12px;
}

.dn-myinvest-date-v14 {
  color: var(--dn-muted);
  font-size: 12px;
  white-space: nowrap;
}

.dn-myinvest-amount-v14,
.dn-myinvest-profit-v14 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  margin-bottom: 10px;
  background: rgba(15, 23, 42, .025);
  border-radius: 11px;
}

.dn-myinvest-status-v14 {
  padding: 9px 11px;
  margin-bottom: 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
}

.dn-myinvest-empty-v14 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 30px 20px;
  text-align: center;
  background: #fff;
  border: 1px dashed rgba(15, 23, 42, .14);
  border-radius: 16px;
}

.dn-myinvest-empty-v14 span {
  color: var(--dn-muted);
  font-size: 13px;
}

@media (max-width: 720px) {

  .dn-myinvest-header-v14 {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .dn-myinvest-toolbar-v14 {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .dn-myinvest-sort-v14 {
    width: 100%;
  }

  .dn-myinvest-card-head-v14 {
    flex-direction: column;
  }

  .dn-myinvest-date-v14 {
    white-space: normal;
  }
}

/* VALORA_MY_INVESTMENTS_V15 */

/*
  Compact utility header.
  Page title already exists in the application navbar,
  so it is intentionally not repeated here.
*/

.dn-myinvest-actions-v15 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin: 0 0 14px;
  padding: 4px 2px 13px;

  border-bottom: 1px solid rgba(15, 23, 42, .08);
}


/* result count */

.dn-myinvest-count-v15 {
  display: inline-flex;
  align-items: center;
  min-height: 34px;

  padding: 0 11px;

  color: var(--dn-muted);
  background: rgba(15, 23, 42, .035);

  border: 1px solid rgba(15, 23, 42, .055);
  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
}


/* filter button */

.dn-myinvest-filter-toggle-v15 {
  appearance: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-height: 38px;
  padding: 0 13px;

  color: #24496f;
  background: #fff;

  border: 1px solid rgba(36, 73, 111, .17);
  border-radius: 10px;

  font: inherit;
  font-size: 12.5px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    color .16s ease;
}


.dn-myinvest-filter-toggle-v15:hover {
  background: rgba(36, 73, 111, .045);
  border-color: rgba(36, 73, 111, .28);
}


.dn-myinvest-filter-toggle-v15:focus-visible {
  outline: none;

  box-shadow:
    0 0 0 3px rgba(36, 73, 111, .09);
}


.dn-myinvest-filter-toggle-v15.is-open {
  color: #173d65;
  background: rgba(36, 73, 111, .07);
  border-color: rgba(36, 73, 111, .25);
}


.dn-myinvest-filter-toggle-v15.has-filter::after {
  content: '';

  width: 6px;
  height: 6px;

  margin-right: 1px;

  background: currentColor;
  border-radius: 50%;
}


.dn-myinvest-filter-icon-v15 {
  display: inline-flex;

  width: 17px;
  height: 17px;

  align-items: center;
  justify-content: center;
}


.dn-myinvest-filter-icon-v15 svg {
  display: block;

  width: 17px;
  height: 17px;
}


/* hidden filter panel */

.dn-myinvest-filter-panel-v15[hidden] {
  display: none !important;
}


.dn-myinvest-filter-panel-v15 {
  margin: -2px 0 16px;
  padding: 14px;

  background: #fff;

  border: 1px solid rgba(15, 23, 42, .075);
  border-radius: 14px;

  box-shadow:
    0 7px 20px rgba(15, 23, 42, .035);
}


.dn-myinvest-filter-field-v15 {
  display: flex;
  flex-direction: column;
  gap: 7px;
}


.dn-myinvest-filter-field-v15 label {
  color: var(--dn-ink);

  font-size: 12px;
  font-weight: 700;
}


.dn-myinvest-filter-input-wrap-v15 {
  position: relative;
}


.dn-myinvest-search-v15 {
  width: 100%;
  min-height: 44px;

  padding:
    0 14px
    0 42px;

  color: var(--dn-ink);
  background: #fff;

  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 11px;

  outline: none;
  font: inherit;

  transition:
    border-color .16s ease,
    box-shadow .16s ease;
}


.dn-myinvest-search-v15:focus {
  border-color: rgba(36, 73, 111, .42);

  box-shadow:
    0 0 0 3px rgba(36, 73, 111, .07);
}


.dn-myinvest-filter-clear-v15 {
  position: absolute;

  left: 7px;
  top: 50%;

  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;

  padding: 0;

  color: var(--dn-muted);
  background: transparent;

  border: 0;
  border-radius: 8px;

  font-size: 20px;
  line-height: 1;

  cursor: pointer;
}


.dn-myinvest-filter-clear-v15:hover {
  color: var(--dn-ink);
  background: rgba(15, 23, 42, .045);
}


/* remove obsolete V14 header spacing if browser keeps old rules */

.dn-investor-page-status .dn-myinvest-header-v14 {
  display: none !important;
}


.dn-investor-page-status .dn-myinvest-toolbar-v14 {
  display: none !important;
}


@media (max-width: 720px) {

  .dn-myinvest-actions-v15 {
    padding-bottom: 11px;
  }

  .dn-myinvest-filter-toggle-v15 {
    min-height: 38px;
    padding: 0 11px;
  }

  .dn-myinvest-filter-panel-v15 {
    padding: 12px;
    margin-bottom: 14px;
  }
}

/* VALORA_INVESTOR_HEADER_MINI_WALLET_V1 */

.dn-header-user-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}


/* hidden outside investor logged-in portal */

.dn-header-wallet-slot {
  display: none;
  flex: 0 0 auto;
}

.dn-header-wallet-slot.show {
  display: flex;
}


/* mini wallet */

.dn-header-wallet-mini {
  appearance: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  height: 38px;

  padding:
    0 5px
    0 9px;

  margin: 0;

  color: #14395f;
  background: transparent;

  border: 1px solid rgba(20, 57, 95, .12);
  border-radius: 11px;

  font: inherit;

  white-space: nowrap;
  cursor: pointer;

  transition:
    background .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}


.dn-header-wallet-mini:hover {
  background: rgba(20, 57, 95, .035);
  border-color: rgba(20, 57, 95, .22);
}


.dn-header-wallet-mini:focus-visible {
  outline: none;

  box-shadow:
    0 0 0 3px rgba(20, 57, 95, .07);
}


/* wallet symbol */

.dn-header-wallet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 25px;
  height: 25px;

  color: #14395f;
}


.dn-header-wallet-icon svg {
  display: block;

  width: 17px;
  height: 17px;
}


/* balance */

.dn-header-wallet-value {
  display: inline-flex;
  align-items: center;

  direction: rtl;

  color: #17283b;

  font-size: 11.5px;
  font-weight: 700;

  line-height: 1;
}


/* small + action */

.dn-header-wallet-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 25px;
  height: 25px;

  color: #14395f;
  background: rgba(20, 57, 95, .065);

  border-radius: 8px;

  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}


.dn-header-wallet-mini:hover
.dn-header-wallet-add {
  background: rgba(20, 57, 95, .10);
}


/* tablet */

@media (max-width: 760px) {

  .dn-header-user-cluster {
    gap: 6px;
  }

  .dn-header-wallet-value {
    font-size: 11px;
  }

}


/* mobile: keep header very light */

@media (max-width: 520px) {

  .dn-header-wallet-mini {
    gap: 3px;

    height: 36px;

    padding: 0 4px;
  }

  .dn-header-wallet-value {
    display: none;
  }

  .dn-header-wallet-icon,
  .dn-header-wallet-add {
    width: 25px;
    height: 25px;
  }

}


/* very small phones */

@media (max-width: 390px) {

  .dn-header-user-cluster {
    gap: 4px;
  }

  .dn-header-wallet-mini {
    border-radius: 9px;
  }

}

/* VALORA_HEADER_MINI_WALLET_LAYOUT_V2 */


/* ------------------------------------------------------------
   Keep brand and account controls inside the same header row
------------------------------------------------------------- */

.dn-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  width: 100%;
  min-width: 0;
}


.dn-topbar-row > .dn-brand {
  flex: 1 1 auto;

  min-width: 0;
}


/* ------------------------------------------------------------
   Wallet + Profile group
------------------------------------------------------------- */

.dn-header-user-cluster {
  display: flex;
  align-items: center;

  flex: 0 1 auto;

  gap: 8px;

  min-width: 0;
  max-width: 100%;

  margin-inline-start: auto;
}


/* ------------------------------------------------------------
   Protect profile from overflowing its own button
------------------------------------------------------------- */

.dn-user-profile-slot {
  flex: 0 1 auto;

  min-width: 0;
  max-width: 230px;
}


.dn-user-profile-slot.show {
  min-width: 0;
}


.dn-profile-menu-wrap {
  position: relative;

  min-width: 0;
  max-width: 100%;
}


.dn-profile-trigger {
  box-sizing: border-box;

  display: flex;
  align-items: center;

  max-width: 100%;
  min-width: 0;

  overflow: hidden;
}


.dn-profile-summary {
  min-width: 0;
  max-width: 150px;

  overflow: hidden;
}


.dn-profile-summary strong,
.dn-profile-summary small {
  display: block;

  max-width: 100%;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.dn-profile-avatar,
.dn-profile-caret {
  flex: 0 0 auto;
}


/* ------------------------------------------------------------
   Wallet
------------------------------------------------------------- */

.dn-header-wallet-slot {
  flex: 0 1 auto;

  min-width: 0;
}


.dn-header-wallet-slot.show {
  min-width: 0;
}


.dn-header-wallet-mini {
  box-sizing: border-box;

  display: flex;
  align-items: center;

  gap: 8px;

  height: 42px;

  max-width: 230px;
  min-width: 0;

  padding:
    4px 5px
    4px 10px;
}


/* wallet icon never shrinks */

.dn-header-wallet-icon {
  flex: 0 0 auto;
}


/* label + amount */

.dn-header-wallet-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  min-width: 0;

  gap: 1px;

  line-height: 1.15;
}


.dn-header-wallet-label {
  display: block;

  color: #7a8795;

  font-size: 9.5px;
  font-weight: 500;

  white-space: nowrap;
}


.dn-header-wallet-value {
  display: block;

  max-width: 145px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: #17283b;

  font-size: 11.5px;
  font-weight: 700;

  direction: rtl;
}


/* + stays visible */

.dn-header-wallet-add {
  flex: 0 0 auto;
}


/* ------------------------------------------------------------
   Medium screens
------------------------------------------------------------- */

@media (max-width: 900px) {

  .dn-header-user-cluster {
    gap: 6px;
  }

  .dn-user-profile-slot {
    max-width: 190px;
  }

  .dn-profile-summary {
    max-width: 115px;
  }

  .dn-header-wallet-mini {
    max-width: 200px;
  }

  .dn-header-wallet-value {
    max-width: 115px;
  }

}


/* ------------------------------------------------------------
   Mobile
------------------------------------------------------------- */

@media (max-width: 600px) {

  .dn-topbar-row {
    gap: 7px;
  }

  .dn-header-user-cluster {
    gap: 4px;
  }

  .dn-header-wallet-mini {
    width: auto;
    height: 36px;

    padding: 4px;
  }

  .dn-header-wallet-copy {
    display: none;
  }

  .dn-user-profile-slot {
    max-width: 48px;
  }

  .dn-profile-trigger {
    padding: 5px;
  }

  .dn-profile-summary,
  .dn-profile-caret {
    display: none;
  }

}


/* ------------------------------------------------------------
   Very narrow phones
------------------------------------------------------------- */

@media (max-width: 390px) {

  .dn-topbar-row {
    gap: 4px;
  }

  .dn-header-wallet-mini {
    gap: 2px;
  }

}

/* VALORA_HEADER_BRAND_AND_WALLET_FIX_V3 */


/* ------------------------------------------------------------
   Brand text beside logo
------------------------------------------------------------- */

.dn-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dn-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.1;
}

.dn-brand-title-fa {
  color: #163a70;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.dn-brand-title-en {
  margin-top: 4px;
  color: #6b7280;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  direction: ltr;
  text-align: right;
  white-space: nowrap;
}


/* ------------------------------------------------------------
   Header user cluster
------------------------------------------------------------- */

.dn-header-user-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-inline-start: auto;
}


/* ------------------------------------------------------------
   Mini wallet
------------------------------------------------------------- */

.dn-header-wallet-slot {
  min-width: 0;
}

.dn-header-wallet-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 220px;
  height: 42px;
  padding: 5px 8px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  box-sizing: border-box;
}

.dn-header-wallet-icon {
  flex: 0 0 auto;
}

.dn-header-wallet-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.dn-header-wallet-label {
  color: #6b7280;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.dn-header-wallet-amount-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  flex-wrap: nowrap;
}

.dn-header-wallet-value {
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.dn-header-wallet-currency {
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

.dn-header-wallet-add {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}


/* ------------------------------------------------------------
   Profile containment
------------------------------------------------------------- */

.dn-user-profile-slot,
.dn-profile-menu-wrap,
.dn-profile-trigger {
  min-width: 0;
}

.dn-profile-trigger {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.dn-profile-summary {
  min-width: 0;
  max-width: 115px;
}

.dn-profile-summary strong,
.dn-profile-summary small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------- */

@media (max-width: 700px) {

  .dn-brand-title-en {
    display: none;
  }

  .dn-header-wallet-mini {
    max-width: 170px;
    padding: 4px 6px;
  }

  .dn-header-wallet-value {
    font-size: 11px;
  }

  .dn-profile-summary {
    max-width: 82px;
  }
}

@media (max-width: 560px) {

  .dn-header-wallet-label {
    display: none;
  }

  .dn-header-wallet-mini {
    max-width: 138px;
  }

  .dn-header-wallet-value {
    max-width: 72px;
  }

  .dn-profile-summary {
    max-width: 64px;
  }
}

/* VALORA_HEADER_BRAND_WALLET_V5 */


/* ============================================================
   BRAND
   شریف دین
   Sharif Deyn
============================================================ */

.dn-brand .dn-brand-name-stack {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  width: auto !important;
  min-width: 76px;

  line-height: 1;
}


.dn-brand .dn-brand-title-fa {
  display: block !important;

  color: #153b6b;

  font-size: 14px;
  font-weight: 800;

  line-height: 1.1;

  white-space: nowrap !important;
}


.dn-brand .dn-brand-title-en {
  display: block !important;

  margin-top: 4px;

  color: #8a94a3;

  font-family: Arial, sans-serif;

  font-size: 8px;
  font-weight: 500;

  line-height: 1;

  direction: ltr;

  white-space: nowrap;
}


/* ============================================================
   HEADER CLUSTER
============================================================ */

.dn-header-user-cluster {
  display: flex !important;
  align-items: center;

  gap: 8px;

  min-width: 0;

  margin-inline-start: auto;
}


/* ============================================================
   WALLET
============================================================ */

.dn-header-wallet-slot.show {
  display: flex;
  align-items: center;

  flex: 0 0 auto;
}


.dn-header-wallet-mini {
  box-sizing: border-box;

  display: flex !important;
  align-items: center;

  gap: 7px;

  width: 180px;
  min-width: 180px;
  max-width: 180px;

  height: 42px;

  padding:
    4px 5px
    4px 8px;

  overflow: hidden;

  background: #fafbfd;

  border: 1px solid #e5eaf0;
  border-radius: 11px;
}


/* wallet icon */

.dn-header-wallet-icon {
  flex: 0 0 21px;

  width: 21px;
  height: 21px;
}


/* label + amount */

.dn-header-wallet-copy {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  flex: 1 1 auto;

  min-width: 0;

  gap: 2px;

  overflow: hidden;
}


.dn-header-wallet-label {
  display: block !important;

  color: #768396;

  font-size: 9px;
  font-weight: 500;

  line-height: 1;

  white-space: nowrap;
}


/*
  fmtToman(balance) no longer contains "تومان".
  Add unit visually here, OUTSIDE the + zone.
*/

.dn-header-wallet-value {
  display: block !important;

  min-width: 0;
  max-width: 100%;

  overflow: hidden;

  color: #10283f;

  font-size: 11.5px;
  font-weight: 800;

  line-height: 1.15;

  text-overflow: ellipsis;
  white-space: nowrap;

  direction: rtl;
}


.dn-header-wallet-value::after {
  content: "\00A0\062A\0648\0645\0627\0646";

  color: #738094;

  font-size: 8.5px;
  font-weight: 600;
}


/* + completely separate */

.dn-header-wallet-add {
  box-sizing: border-box;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  flex: 0 0 27px;

  width: 27px;
  height: 27px;

  margin: 0;

  overflow: hidden;

  color: #153f6c;
  background: #eef3f8;

  border-radius: 8px;

  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}


/* ============================================================
   PROFILE
============================================================ */

.dn-user-profile-slot {
  flex: 0 0 122px;

  width: 122px;
  min-width: 122px;
  max-width: 122px;
}


.dn-profile-menu-wrap {
  width: 100%;
  min-width: 0;
}


.dn-profile-trigger {
  box-sizing: border-box;

  display: flex;
  align-items: center;

  width: 100%;
  min-width: 0;
  max-width: 100%;

  overflow: hidden;
}


.dn-profile-summary {
  flex: 1 1 auto;

  min-width: 0;

  overflow: hidden;
}


.dn-profile-summary strong,
.dn-profile-summary small {
  display: block;

  max-width: 100%;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 850px) {

  .dn-header-wallet-mini {
    width: 165px;
    min-width: 165px;
    max-width: 165px;
  }

  .dn-user-profile-slot {
    width: 108px;
    min-width: 108px;
    max-width: 108px;
  }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

  .dn-header-user-cluster {
    gap: 4px;
  }

  .dn-header-wallet-mini {
    width: 145px;
    min-width: 145px;
    max-width: 145px;

    height: 38px;

    gap: 4px;
  }

  .dn-header-wallet-copy {
    display: flex !important;
  }

  .dn-header-wallet-label {
    display: block !important;

    font-size: 8px;
  }

  .dn-header-wallet-value {
    font-size: 10px;
  }

  .dn-header-wallet-value::after {
    font-size: 7px;
  }

  .dn-header-wallet-add {
    flex-basis: 24px;

    width: 24px;
    height: 24px;
  }

  .dn-user-profile-slot {
    width: 82px;
    min-width: 82px;
    max-width: 82px;
  }

}


/* ============================================================
   VERY NARROW MOBILE
============================================================ */

@media (max-width: 430px) {

  .dn-brand .dn-brand-title-en {
    display: none !important;
  }

  .dn-header-wallet-mini {
    width: 65px;
    min-width: 65px;
    max-width: 65px;
  }

  .dn-header-wallet-copy {
    display: none !important;
  }

  .dn-user-profile-slot {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
  }

  .dn-profile-summary,
  .dn-profile-caret {
    display: none;
  }

}

/* VALORA_INVESTOR_HEADER_V6_FIXED */


/* ============================================================
   TOPBAR
============================================================ */

#dn-app.dn-role-investor
.dn-topbar-row {
  display: flex !important;

  align-items: center !important;
  justify-content: space-between !important;

  width: 100%;

  min-width: 0;

  gap: 10px;
}


/* ============================================================
   REMOVE PORTAL LABEL
============================================================ */

#dn-app.dn-role-investor
#dn-portal-tag {
  display: none !important;
}


/* ============================================================
   BRAND
   only:
   LOGO
   Sharif Deyn
============================================================ */

#dn-app.dn-role-investor
.dn-brand {
  display: flex !important;

  flex-direction: column !important;

  align-items: center !important;
  justify-content: center !important;

  flex: 0 0 72px;

  width: 72px;
  min-width: 72px;
  max-width: 72px;

  gap: 3px !important;

  margin: 0;

  overflow: visible;
}


/* Persian version must stay hidden even if older CSS exists */

#dn-app.dn-role-investor
.dn-brand-title-fa {
  display: none !important;
}


#dn-app.dn-role-investor
.dn-brand-name-stack {
  display: block !important;

  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;

  margin: 0 !important;

  text-align: center;
}


#dn-app.dn-role-investor
.dn-brand-title-en {
  display: block !important;

  width: 100%;

  margin: 0 !important;

  color: #69788b;

  font-family:
    Arial,
    sans-serif;

  font-size: 8.5px;
  font-weight: 600;

  line-height: 1;

  direction: ltr;

  text-align: center;

  white-space: nowrap;
}


/* ============================================================
   HEADER RIGHT/LEFT CONTROLS
============================================================ */

#dn-app.dn-role-investor
.dn-header-user-cluster {
  display: flex !important;

  flex-direction: row;

  align-items: center;

  flex: 0 1 auto;

  min-width: 0;

  max-width:
    calc(100% - 82px);

  gap: 7px;

  margin-inline-start: auto;

  overflow: visible;
}


/* ============================================================
   WALLET
============================================================ */

#dn-app.dn-role-investor
.dn-header-wallet-slot.show {
  display: flex !important;

  align-items: center;

  flex: 0 1 202px;

  width: 202px;

  min-width: 180px;
  max-width: 202px;
}


#dn-app.dn-role-investor
.dn-header-wallet-mini {
  box-sizing: border-box;

  display: flex !important;

  align-items: center;

  width: 100%;

  min-width: 0;
  max-width: 100%;

  height: 42px;

  gap: 7px;

  padding:
    4px 6px
    4px 8px;

  margin: 0;

  overflow: hidden;

  color: #14395f;

  background: #fafbfd;

  border:
    1px solid #e4e9ef;

  border-radius: 11px;
}


/* icon */

#dn-app.dn-role-investor
.dn-header-wallet-icon {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 21px;

  width: 21px;
  height: 21px;
}


/* wallet label + amount */

#dn-app.dn-role-investor
.dn-header-wallet-copy {
  display: flex !important;

  flex-direction: column;

  align-items: flex-start;
  justify-content: center;

  flex: 1 1 auto;

  min-width: 0;

  gap: 2px;

  overflow: hidden;
}


#dn-app.dn-role-investor
.dn-header-wallet-label {
  display: block !important;

  max-width: 100%;

  overflow: hidden;

  color: #778497;

  font-size: 9px;
  font-weight: 500;

  line-height: 1;

  text-overflow: clip;

  white-space: nowrap;
}


/* ============================================================
   WALLET VALUE
   NO ...
============================================================ */

#dn-app.dn-role-investor
.dn-header-wallet-value {
  display: block !important;

  width: auto !important;

  min-width: 0 !important;
  max-width: 100% !important;

  overflow: hidden !important;

  color: #10283f;

  font-size: 11px;
  font-weight: 800;

  line-height: 1.15;

  direction: rtl;

  text-overflow: clip !important;

  white-space: nowrap !important;
}


/*
  V5 already strips "تومان" from fmtToman(balance).
  Add it here.

  No ellipsis.
  No interaction with +.
*/

#dn-app.dn-role-investor
.dn-header-wallet-value::after {
  content:
    "\00A0\062A\0648\0645\0627\0646";

  color: #738094;

  font-size: 8px;
  font-weight: 600;

  line-height: 1;

  white-space: nowrap;
}


/* ============================================================
   PLUS
   always isolated
============================================================ */

#dn-app.dn-role-investor
.dn-header-wallet-add {
  box-sizing: border-box;

  display: inline-flex !important;

  align-items: center;
  justify-content: center;

  flex: 0 0 27px;

  width: 27px;
  min-width: 27px;
  max-width: 27px;

  height: 27px;

  margin: 0 !important;

  overflow: hidden;

  color: #153f6c;

  background: #eef3f8;

  border-radius: 8px;

  font-family:
    Arial,
    sans-serif;

  font-size: 17px;
  font-weight: 400;

  line-height: 1;
}


/* ============================================================
   PROFILE
============================================================ */

#dn-app.dn-role-investor
.dn-user-profile-slot {
  flex: 0 1 126px;

  width: 126px;

  min-width: 96px;
  max-width: 126px;

  overflow: visible;
}


#dn-app.dn-role-investor
.dn-profile-menu-wrap {
  position: relative;

  width: 100%;

  min-width: 0;

  overflow: visible;
}


#dn-app.dn-role-investor
.dn-profile-trigger {
  box-sizing: border-box;

  display: flex !important;

  align-items: center;

  width: 100%;

  min-width: 0;
  max-width: 100%;

  overflow: hidden !important;
}


#dn-app.dn-role-investor
.dn-profile-summary {
  flex: 1 1 auto;

  min-width: 0;

  overflow: hidden;
}


#dn-app.dn-role-investor
.dn-profile-summary strong,

#dn-app.dn-role-investor
.dn-profile-summary small {
  display: block;

  max-width: 100%;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


#dn-app.dn-role-investor
.dn-profile-avatar,

#dn-app.dn-role-investor
.dn-profile-caret {
  flex: 0 0 auto;
}


/* ============================================================
   OVERFLOW ERROR INDICATOR - DEVELOPMENT
============================================================ */

html[data-valora-header-overflow="true"]
#dn-app.dn-role-investor
.dn-topbar {
  box-shadow:
    inset 0 -2px 0
    #c43b3b;
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 850px) {

  #dn-app.dn-role-investor
  .dn-header-wallet-slot.show {
    flex-basis: 185px;

    width: 185px;

    min-width: 165px;
    max-width: 185px;
  }


  #dn-app.dn-role-investor
  .dn-user-profile-slot {
    flex-basis: 108px;

    width: 108px;

    min-width: 88px;
    max-width: 108px;
  }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

  #dn-app.dn-role-investor
  .dn-topbar-row {
    gap: 5px;
  }


  #dn-app.dn-role-investor
  .dn-brand {
    flex-basis: 58px;

    width: 58px;
    min-width: 58px;
    max-width: 58px;
  }


  #dn-app.dn-role-investor
  .dn-brand-name-stack {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
  }


  #dn-app.dn-role-investor
  .dn-brand-title-en {
    font-size: 7px;
  }


  #dn-app.dn-role-investor
  .dn-header-user-cluster {
    max-width:
      calc(100% - 63px);

    gap: 4px;
  }


  #dn-app.dn-role-investor
  .dn-header-wallet-slot.show {
    flex-basis: 148px;

    width: 148px;

    min-width: 130px;
    max-width: 148px;
  }


  #dn-app.dn-role-investor
  .dn-header-wallet-mini {
    height: 38px;

    gap: 4px;

    padding:
      3px 4px
      3px 5px;
  }


  #dn-app.dn-role-investor
  .dn-header-wallet-copy {
    display: flex !important;
  }


  #dn-app.dn-role-investor
  .dn-header-wallet-label {
    display: block !important;

    font-size: 8px;
  }


  #dn-app.dn-role-investor
  .dn-header-wallet-value {
    font-size: 9.5px;
  }


  #dn-app.dn-role-investor
  .dn-header-wallet-value::after {
    font-size: 7px;
  }


  #dn-app.dn-role-investor
  .dn-header-wallet-add {
    flex-basis: 24px;

    width: 24px;
    min-width: 24px;
    max-width: 24px;

    height: 24px;
  }


  #dn-app.dn-role-investor
  .dn-user-profile-slot {
    flex-basis: 84px;

    width: 84px;

    min-width: 50px;
    max-width: 84px;
  }

}


/* ============================================================
   NARROW MOBILE
============================================================ */

@media (max-width: 430px) {

  #dn-app.dn-role-investor
  .dn-brand {
    flex-basis: 50px;

    width: 50px;
    min-width: 50px;
    max-width: 50px;
  }


  #dn-app.dn-role-investor
  .dn-brand-name-stack {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
  }


  #dn-app.dn-role-investor
  .dn-brand-title-en {
    font-size: 6.5px;
  }


  #dn-app.dn-role-investor
  .dn-header-user-cluster {
    max-width:
      calc(100% - 54px);
  }


  /*
    On very narrow screens:
    wallet icon + plus only.
  */

  #dn-app.dn-role-investor
  .dn-header-wallet-slot.show {
    flex-basis: 62px;

    width: 62px;
    min-width: 62px;
    max-width: 62px;
  }


  #dn-app.dn-role-investor
  .dn-header-wallet-copy {
    display: none !important;
  }


  #dn-app.dn-role-investor
  .dn-user-profile-slot {
    flex-basis: 44px;

    width: 44px;
    min-width: 44px;
    max-width: 44px;
  }


  #dn-app.dn-role-investor
  .dn-profile-summary,

  #dn-app.dn-role-investor
  .dn-profile-caret {
    display: none !important;
  }

}

/* VALORA_WALLET_SETTLEMENT_SPLIT_V3 */


/* ============================================================
   MANAGEMENT SUB TABS
============================================================ */

.dn-wallet-subnav {
  box-sizing: border-box;

  display: inline-flex;
  align-items: center;

  max-width: 100%;

  gap: 4px;

  margin:
    0 0 18px;

  padding: 4px;

  overflow: hidden;

  background: #f3f6f9;

  border:
    1px solid rgba(
      20,
      57,
      95,
      .08
    );

  border-radius: 11px;
}


.dn-wallet-subnav-btn {
  appearance: none;

  box-sizing: border-box;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 96px;

  height: 34px;

  padding:
    0 18px;

  margin: 0;

  border: 0;
  border-radius: 8px;

  background: transparent;

  color: #68778a;

  font: inherit;

  font-size: 12px;
  font-weight: 600;

  white-space: nowrap;

  cursor: pointer;

  transition:
    background .15s ease,
    color .15s ease,
    box-shadow .15s ease;
}


.dn-wallet-subnav-btn:hover {
  color: #173d65;
}


.dn-wallet-subnav-btn.active {
  color: #173d65;

  background: #fff;

  box-shadow:
    0 1px 4px
    rgba(15,23,42,.06);
}


.dn-wallet-subnav-btn:focus-visible {
  outline:
    2px solid
    rgba(23,61,101,.16);

  outline-offset: 1px;
}


/* ============================================================
   CONTENT CONTAINMENT
============================================================ */

.dn-investor-page-wallet
.dn-wallet-dashboard,

.dn-investor-page-wallet
.dn-wallet-kpis,

.dn-investor-page-wallet
.dn-withdrawal-card {
  box-sizing: border-box;

  max-width: 100%;
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 520px) {

  .dn-wallet-subnav {
    display: flex;

    width: 100%;
  }


  .dn-wallet-subnav-btn {
    flex:
      1 1 50%;

    min-width: 0;

    padding:
      0 10px;
  }

}

/* VALORA_WALLET_SIDEBAR_CHILDREN_V4 */

/*
  Wallet navigation is now canonical in the sidebar:

  مدیریت کیف پول
    کیف پول
    تسویه

  The older V3 page-level tab bar is intentionally hidden.
*/

.dn-wallet-subnav {
  display: none !important;
}

/* VALORA_HEADER_SINGLE_TOMAN_V2 */

/*
  The header already contains one explicit currency element:
  .dn-header-wallet-currency

  Disable any legacy pseudo-element that may generate
  another currency label.
*/

.dn-header-wallet-mini .dn-header-wallet-value::before,
.dn-header-wallet-mini .dn-header-wallet-value::after,
.dn-header-wallet-mini .dn-header-wallet-amount-row::before,
.dn-header-wallet-mini .dn-header-wallet-amount-row::after,
.dn-header-wallet-mini .dn-header-wallet-currency::before,
.dn-header-wallet-mini .dn-header-wallet-currency::after {
  content: none !important;
  display: none !important;
}


/* ============================================================
   VALORA_INVEST_MODAL_UX_V1
   ============================================================ */

/* Investment modal overlay */
.dn-invest-modal-overlay{
  box-sizing:border-box !important;
  padding:16px !important;
  overflow-y:auto !important;
  overscroll-behavior:contain !important;
}

/* Keep the investment dialog inside viewport */
.dn-invest-modal-overlay > *{
  width:min(560px,calc(100vw - 32px)) !important;
  max-width:560px !important;
  max-height:calc(100dvh - 32px) !important;
  box-sizing:border-box !important;
}

/* Any modal/card inside investment overlay */
.dn-invest-modal-overlay .dn-modal,
.dn-invest-modal-overlay [role="dialog"]{
  width:min(560px,calc(100vw - 32px)) !important;
  max-width:560px !important;
  max-height:calc(100dvh - 32px) !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  box-sizing:border-box !important;
}

/* Toast must always stay above investment overlay */
#dn-toast,
.dn-toast{
  z-index:1000100 !important;
}

/* Inline insufficient-wallet error */
.dn-invest-wallet-error-v1{
  margin:12px 0 14px !important;
  padding:13px 14px !important;

  border:
    1px solid
    rgba(220,38,38,.18) !important;

  border-radius:12px !important;

  background:#FFF7F7 !important;

  color:#7F1D1D !important;

  box-sizing:border-box !important;
}

.dn-invest-wallet-error-title{
  margin-bottom:10px !important;

  font-size:13px !important;
  line-height:1.8 !important;
  font-weight:800 !important;
}

.dn-invest-wallet-error-row{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;

  padding:5px 0 !important;

  font-size:12px !important;
  line-height:1.7 !important;
}

.dn-invest-wallet-error-row span{
  color:#7C4A4A !important;
}

.dn-invest-wallet-error-row strong{
  color:#4A1C1C !important;
  white-space:nowrap !important;
}

.dn-invest-wallet-shortage{
  margin-top:3px !important;
  padding-top:8px !important;

  border-top:
    1px solid
    rgba(220,38,38,.12) !important;
}

.dn-invest-wallet-shortage strong{
  color:#B42318 !important;
}

.dn-invest-wallet-topup-v1{
  width:100% !important;
  margin-top:11px !important;

  min-height:42px !important;

  border-radius:10px !important;

  background:#173B67 !important;
  color:#FFFFFF !important;
  border:0 !important;

  font-family:inherit !important;
  font-size:12px !important;
  font-weight:700 !important;

  cursor:pointer !important;
}

.dn-invest-wallet-topup-v1:hover{
  background:#12345D !important;
}

@media(max-width:600px){

  .dn-invest-modal-overlay{
    padding:10px !important;
    align-items:center !important;
  }

  .dn-invest-modal-overlay > *,
  .dn-invest-modal-overlay .dn-modal,
  .dn-invest-modal-overlay [role="dialog"]{
    width:calc(100vw - 20px) !important;
    max-width:calc(100vw - 20px) !important;
    max-height:calc(100dvh - 20px) !important;
  }

}

/* VALORA_INVESTOR_WALLET_HERO_UI_POLISH_V2 */

.dn-wallet-visual-card {
  border-color: rgba(255,255,255,.16);
  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(16,185,129,.13),
      transparent 32%
    ),
    radial-gradient(
      circle at 88% 88%,
      rgba(59,130,246,.09),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #0d1728 0%,
      #18283d 52%,
      #173c38 100%
    );
  box-shadow:
    0 20px 50px rgba(15,23,42,.22),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.dn-wallet-dashboard-main {
  gap: 14px;
}

.dn-wallet-dashboard-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  box-shadow:
    0 10px 24px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.dn-wallet-balance-copy > span {
  font-weight: 600;
  color: #dce5ef;
}

.dn-wallet-balance-copy > small {
  max-width: 440px;
  color: rgba(255,255,255,.68);
}

.dn-wallet-balance .dn-money-value {
  font-weight: 800;
  letter-spacing: -.02em;
}

.dn-wallet-hero-actions {
  flex: 0 0 auto;
  margin-top: 0;
  align-self: center;
}

.dn-wallet-visual-card .dn-btn-outline {
  min-height: 44px;
  padding-inline: 16px;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  box-shadow: 0 8px 22px rgba(0,0,0,.10);
  backdrop-filter: blur(8px);
}

.dn-wallet-visual-card .dn-btn-outline:hover {
  border-color: rgba(255,255,255,.27);
  background: rgba(255,255,255,.13);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .dn-wallet-dashboard-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .dn-wallet-hero-actions {
    flex: 1 1 100%;
    width: 100%;
    margin-top: 4px;
  }

  .dn-wallet-hero-actions .dn-btn {
    flex: 1 1 100%;
    width: 100%;
  }
}
/* VALORA_WALLET_REFRESH_COLOR_V1 */

.dn-wallet-visual-card #dn-wallet-refresh {
  color: #ffffff;
  border-color: rgba(147,197,253,.32);
  background:
    linear-gradient(
      135deg,
      rgba(37,99,235,.95),
      rgba(79,70,229,.92)
    );
  box-shadow:
    0 9px 22px rgba(37,99,235,.22),
    inset 0 1px 0 rgba(255,255,255,.16);
}

.dn-wallet-visual-card #dn-wallet-refresh:hover {
  border-color: rgba(191,219,254,.52);
  background:
    linear-gradient(
      135deg,
      #2563eb,
      #4f46e5
    );
  box-shadow:
    0 12px 26px rgba(37,99,235,.28);
}
/* VALORA_WALLET_RECEIPT_AMBER_V1 */

/* bank-transfer / receipt entry point */
.dn-wallet-visual-card #dn-wallet-receipt-topup {
  color: #fef3c7;
  border-color: rgba(245,158,11,.42);
  background: rgba(245,158,11,.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08);
}

.dn-wallet-visual-card #dn-wallet-receipt-topup:hover {
  color: #ffffff;
  border-color: rgba(251,191,36,.62);
  background: rgba(245,158,11,.20);
}

/* final receipt submission */
#dn-receipt-topup-confirm {
  color: #ffffff;
  border-color: #d97706;
  background:
    linear-gradient(
      135deg,
      #d97706,
      #f59e0b
    );
  box-shadow:
    0 8px 20px rgba(217,119,6,.20);
}

#dn-receipt-topup-confirm:hover {
  background:
    linear-gradient(
      135deg,
      #b45309,
      #d97706
    );
  box-shadow:
    0 10px 24px rgba(217,119,6,.27);
}

/* receipt file feedback */
#dn-receipt-topup-file-status {
  margin-top: 8px;
  border: 1px solid rgba(245,158,11,.20);
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
}
/* VALORA_WALLET_RECEIPT_BRONZE_V2 */

/* receipt entry point - bronze / copper */
.dn-wallet-visual-card #dn-wallet-receipt-topup {
  color: #f5e6d3;
  border-color: rgba(184,115,51,.48);
  background: rgba(184,115,51,.13);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07);
}

.dn-wallet-visual-card #dn-wallet-receipt-topup:hover {
  color: #ffffff;
  border-color: rgba(210,145,85,.68);
  background: rgba(184,115,51,.22);
}

/* final receipt submit */
#dn-receipt-topup-confirm {
  color: #ffffff;
  border-color: #8f5a2a;
  background:
    linear-gradient(
      135deg,
      #8f5a2a,
      #b87333
    );
  box-shadow:
    0 8px 20px rgba(143,90,42,.22);
}

#dn-receipt-topup-confirm:hover {
  background:
    linear-gradient(
      135deg,
      #78461f,
      #9f602c
    );
  box-shadow:
    0 10px 24px rgba(143,90,42,.28);
}

/* receipt upload feedback */
#dn-receipt-topup-file-status {
  border-color: rgba(184,115,51,.20);
  background: #fffaf5;
  color: #7c4a28;
}
/* VALORA_WALLET_GATEWAY_TEAL_V1 */

.dn-wallet-visual-card #dn-wallet-gateway-topup {
  color: #ffffff;
  border-color: rgba(45,212,191,.40);
  background:
    linear-gradient(
      135deg,
      #0f766e,
      #0d9488
    );
  box-shadow:
    0 9px 22px rgba(13,148,136,.22),
    inset 0 1px 0 rgba(255,255,255,.12);
}

.dn-wallet-visual-card #dn-wallet-gateway-topup:hover {
  border-color: rgba(94,234,212,.58);
  background:
    linear-gradient(
      135deg,
      #115e59,
      #0f766e
    );
  box-shadow:
    0 11px 26px rgba(13,148,136,.28);
}

#dn-gateway-topup-confirm {
  color: #ffffff;
  border-color: #0f766e;
  background:
    linear-gradient(
      135deg,
      #0f766e,
      #14b8a6
    );
  box-shadow:
    0 8px 20px rgba(13,148,136,.22);
}

#dn-gateway-topup-confirm:hover {
  background:
    linear-gradient(
      135deg,
      #115e59,
      #0d9488
    );
}
/* VALORA_RECEIPT_FUND_BANK_ACCOUNT_LAYOUT_V1 */

.dn-receipt-fund-bank-account {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 16px;
}

.dn-receipt-fund-bank-account .dn-page-heading {
  margin: 0 0 14px;
  padding: 0;
}

.dn-receipt-fund-bank-account .dn-page-heading > div {
  min-width: 0;
}

.dn-receipt-fund-bank-account .dn-page-heading img {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.dn-receipt-fund-bank-account .dn-grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}

.dn-receipt-fund-bank-account .dn-field {
  min-width: 0;
  margin: 0;
}

.dn-receipt-fund-bank-account .dn-field > div {
  min-width: 0;
  max-width: 100%;
}

#dn-receipt-fund-bank-sheba {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: left;
  font-size: 13px;
  line-height: 1.7;
}

#dn-receipt-copy-sheba {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 7px 10px;
  min-height: 34px;
  font-size: 12px;
}

.dn-receipt-fund-bank-account
  .dn-field
  > div:has(#dn-receipt-copy-sheba) {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 8px !important;
  width: 100%;
  min-width: 0;
}

.dn-receipt-fund-bank-account
  .dn-field
  > div:has(#dn-receipt-copy-sheba)
  #dn-receipt-fund-bank-sheba {
  flex: 1 1 auto;
}

@media (max-width: 640px) {
  .dn-receipt-fund-bank-account {
    padding: 14px;
  }

  .dn-receipt-fund-bank-account .dn-grid2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .dn-receipt-fund-bank-account
    .dn-field
    > div:has(#dn-receipt-copy-sheba) {
    flex-wrap: nowrap;
  }

  #dn-receipt-fund-bank-sheba {
    font-size: 12px;
  }
}

/* VALORA_RECEIPT_FUND_BANK_ACCOUNT_LAYOUT_V2 */

/* Account number and IBAN must never compete for horizontal space. */
.dn-receipt-fund-bank-account .dn-grid2 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.dn-receipt-fund-bank-account .dn-field {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.dn-receipt-fund-bank-account .dn-field > strong {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* IBAN row: number takes remaining width, copy button stays visible. */
.dn-receipt-fund-bank-account
  .dn-field
  > div:has(#dn-receipt-copy-sheba) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}

#dn-receipt-fund-bank-sheba {
  display: block !important;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  line-height: 1.8;
  box-sizing: border-box;
}

#dn-receipt-copy-sheba {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: none;
  width: auto;
  min-width: max-content;
  white-space: nowrap;
  padding: 7px 11px;
  font-size: 12px;
}

@media (max-width: 480px) {
  #dn-receipt-fund-bank-sheba {
    font-size: 12px;
  }

  #dn-receipt-copy-sheba {
    padding: 6px 8px;
    font-size: 11px;
  }
}

/* VALORA_MARKET_INVESTMENT_TITLE_STYLE_V1 */
.dn-market-investment-title {
  margin-top:3px;
  font-size:12px;
  line-height:1.6;
  font-weight:600;
  color:var(--dn-muted);
  white-space:normal;
  overflow-wrap:anywhere;
}


/* VALORA_TERMS_REQUIRED_MODAL_V1 */
.dn-platform-terms-dialog {
  box-sizing: border-box; width: min(640px, calc(100vw - 32px));
  max-width: none; max-height: calc(100dvh - 32px); margin: auto;
  padding: 24px; border: 1px solid #e2e8f0; border-radius: 20px;
  color: #172033; background: #fff; font: inherit; text-align: right;
  box-shadow: 0 24px 80px rgba(15,23,42,.22); overflow: auto;
}
.dn-platform-terms-dialog::backdrop { background: rgba(15,23,42,.65); }
.dn-platform-terms-dialog[open] { display: flex; flex-direction: column; gap: 16px; }
.dn-platform-terms-dialog [hidden] { display: none !important; }
.dn-platform-terms-brand { color: #0f8a69; font-weight: 800; letter-spacing: .1em; font-size: 12px; direction: ltr; text-align: right; }
.dn-platform-terms-head h2 { margin: 6px 0; font-size: 21px; line-height: 1.6; overflow-wrap: anywhere; }
.dn-platform-terms-version { margin: 0; font-size: 12px; color: #64748b; }
.dn-platform-terms-body { box-sizing: border-box; min-height: 90px; max-height: 45dvh; overflow-y: auto; overscroll-behavior: contain; padding: 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 14px; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.dn-platform-terms-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.8; cursor: pointer; }
.dn-platform-terms-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; accent-color: #0f8a69; }
.dn-platform-terms-message { margin: 0; color: #b42318; font-size: 13px; line-height: 1.8; }
.dn-platform-terms-message:empty { display: none; }
.dn-platform-terms-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dn-platform-terms-actions .dn-btn { flex: 1; min-height: 44px; font: inherit; }
.dn-platform-terms-actions .dn-platform-terms-accept, .dn-platform-terms-actions .dn-platform-terms-retry { background: #0f8a69; border: 1px solid #0f8a69; color: #fff; }
.dn-platform-terms-actions .dn-platform-terms-exit { background: #fff; border: 1px solid #cbd5e1; color: #334155; }
.dn-platform-terms-actions button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 480px) {
  .dn-platform-terms-dialog { padding: 18px; border-radius: 16px; gap: 12px; }
  .dn-platform-terms-head h2 { font-size: 18px; }
  .dn-platform-terms-actions { flex-direction: column; }
}


/* VALORA_APPROVED_MARKET_REDESIGN_V1 */

#dn-investor-content .sd-market-approved-v1 {
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px;
  margin:0 0 14px;
  border:1px solid #e6eaf0;
  border-radius:16px;
  background:#fff;
  box-shadow:0 5px 16px rgba(25,48,80,.07);
  overflow:hidden;
  color:#101d3c;
  box-sizing:border-box;
}

.sd-market-approved-v1 * {
  box-sizing:border-box;
}

.sd-market-approved-v1 .sd-mr-top {
  display:flex;
  direction:ltr;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.sd-mr-status {
  direction:rtl;
}

.sd-market-approved-v1 .sd-mr-id {
  background:#edf1f7;
  padding:5px 10px;
  border-radius:20px;
  color:#111d38;
  font-weight:900;
  font-size:13px;
  direction:ltr;
}

.sd-market-approved-v1 .sd-mr-hero {
  display:grid;
  direction:ltr;
  grid-template-columns:30% minmax(0,1fr);
  align-items:center;
  min-height:68px;
  gap:8px;
}

.sd-mr-image {
  height:76px;
  min-width:0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:hidden;
  background:radial-gradient(
    ellipse at center,
    #edf4ff 0%,
    transparent 72%
  );
}

.sd-mr-image svg,
.sd-mr-image img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

.sd-market-approved-v1 .sd-mr-company {
  direction:rtl;
  text-align:right;
  min-width:0;
}

.sd-market-approved-v1 .sd-mr-company h3 {
  margin:0 0 5px;
  font-size:17px;
  line-height:1.6;
  font-weight:900;
  color:#101a39;
  overflow-wrap:anywhere;
}

.sd-market-approved-v1 .sd-mr-company p {
  font-size:11px;
  line-height:1.8;
  margin:0;
  color:#53637d;
  overflow-wrap:anywhere;
}

.sd-market-approved-v1 .sd-mr-return {
  display:grid;
  direction:ltr;
  grid-template-columns:minmax(0,2fr) minmax(0,1fr);
  align-items:center;
  min-height:56px;
  padding:9px 12px;
  background:linear-gradient(
    110deg,#188bff 0%,#0054c9 75%,#0044ae 100%
  );
  border-radius:12px;
  color:white;
}

.sd-market-approved-v1 .sd-mr-return-number {
  display:block;
  text-align:center;
  font-size:clamp(26px,7vw,38px);
  font-weight:900;
  line-height:1.25;
  color:#fff;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}

.sd-market-approved-v1 .sd-mr-return-label {
  display:flex;
  align-items:center;
  justify-content:center;
  border-left:1px solid rgba(255,255,255,.8);
  gap:5px;
  min-height:32px;
  padding-left:8px;
  color:#fff;
  font-size:10px;
  font-weight:800;
}

.sd-mr-return-label span {
  direction:rtl;
}

.sd-mr-return-label svg {
  flex-shrink:0;
  width:18px;
  height:18px;
  color:#fff;
}

.sd-market-approved-v1 .sd-mr-guarantee {
  display:grid;
  direction:ltr;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  min-height:36px;
  padding:7px 10px;
  border-radius:9px;
  background:#eef1f7;
  gap:8px;
}

.sd-mr-guarantor {
  display:flex;
  direction:ltr;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:0;
}

.sd-mr-guarantor strong {
  direction:rtl;
  font-size:11px;
  font-weight:800;
  overflow-wrap:anywhere;
}

.sd-market-approved-v1 .sd-mr-bank-logo {
  width:24px;
  height:24px;
  flex:0 0 24px;
  object-fit:contain;
}

.sd-mr-guarantee-label {
  display:flex;
  direction:ltr;
  align-items:center;
  gap:6px;
  font-size:11px;
  font-weight:700;
  color:#122344;
}

.sd-market-approved-v1 .sd-mr-funding {
  display:grid;
  direction:ltr;
  grid-template-columns:
    minmax(0,1fr)
    minmax(48px,.85fr)
    minmax(0,1fr);
  align-items:center;
  gap:8px;
  padding:9px 8px;
  border:1px solid #f0f2f6;
  border-radius:13px;
  background:#fcfdff;
}

.sd-mr-raised,
.sd-mr-total {
  direction:rtl;
  min-width:0;
}

.sd-mr-total {
  text-align:right;
}

.sd-mr-raised {
  text-align:left;
}

.sd-mr-total > span,
.sd-mr-raised > span {
  display:block;
  margin-bottom:4px;
  font-size:9px;
  color:#566780;
  line-height:1.6;
}

.sd-mr-total > strong,
.sd-mr-raised > strong {
  display:block;
  font-weight:900;
  font-size:12px;
  line-height:1.6;
  overflow-wrap:anywhere;
}

.sd-mr-raised > strong {
  color:#078538;
}

.sd-mr-progress {
  text-align:center;
  min-width:0;
}

.sd-mr-progress > strong {
  display:block;
  margin-bottom:6px;
  font-size:13px;
  color:#078538;
  font-weight:900;
}

.sd-mr-track {
  height:7px;
  width:100%;
  background:#d1d7e2;
  border-radius:20px;
  overflow:hidden;
  direction:ltr;
}

.sd-mr-track i {
  display:block;
  height:100%;
  border-radius:20px;
  background:#079944;
}

.sd-market-approved-v1 .sd-mr-metrics {
  display:grid;
  direction:ltr;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}

.sd-market-approved-v1 .sd-mr-maturity,
.sd-market-approved-v1 .sd-mr-monthly {
  position:relative;
  direction:rtl;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:52px;
  border-radius:11px;
  padding:6px 24px 6px 6px;
  gap:3px;
}

.sd-mr-maturity {
  border:1px solid #e1e7f0;
  background:#fbfcfe;
}

.sd-mr-monthly {
  background:#e3efff;
}

.sd-mr-maturity > span,
.sd-mr-monthly > span {
  color:#536680;
  font-size:10px;
  font-weight:600;
  text-align:center;
}

.sd-mr-maturity > strong,
.sd-mr-monthly > strong {
  font-size:16px;
  font-weight:900;
  line-height:1.5;
}

.sd-mr-monthly > strong {
  color:#06469f;
  font-size:20px;
}

.sd-mr-maturity > svg,
.sd-mr-monthly > svg {
  position:absolute;
  right:7px;
  top:50%;
  transform:translateY(-50%);
  color:#0758b9;
  width:16px;
  height:16px;
}

.sd-market-approved-v1 .sd-mr-actions {
  display:grid;
  direction:ltr;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
  gap:7px;
  margin-top:2px;
}

.sd-market-approved-v1 .sd-mr-actions button,
.sd-mr-invest-disabled {
  display:flex;
  direction:rtl;
  align-items:center;
  justify-content:center;
  min-width:0;
  width:100%;
  min-height:44px;
  padding:7px 5px;
  border-radius:9px;
  font-family:inherit;
  font-size:12px;
  font-weight:800;
  text-align:center;
  line-height:1.6;
}

.sd-market-approved-v1 .sd-mr-details-btn {
  border:1.4px solid #123e7c;
  background:#fff;
  color:#123e7c;
  cursor:pointer;
}

.sd-market-approved-v1 .sd-mr-invest-btn {
  border:1px solid #1d3152;
  background:linear-gradient(120deg,#293d5e,#162943);
  color:#fff;
  cursor:pointer;
  gap:6px;
}

.sd-mr-invest-disabled {
  background:#edf0f4;
  color:#66758a;
}

.sd-mr-invest-btn svg {
  width:17px;
  height:17px;
  color:#fff;
}

.sd-mr-details-dialog {
  width:min(420px,calc(100% - 24px));
  max-height:85vh;
  padding:0;
  border:1px solid #e3e8ef;
  border-radius:18px;
  background:#fff;
  color:#14213d;
  box-shadow:0 15px 55px rgba(0,0,0,.2);
  font-family:inherit;
}

.sd-mr-details-dialog::backdrop {
  background:rgba(15,23,42,.48);
}

.sd-mr-dialog-body {
  padding:18px;
  font-family:inherit;
}

.sd-mr-dialog-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.sd-mr-dialog-head h3 {
  margin:0;
  font-size:17px;
}

.sd-mr-close {
  border:0;
  background:#eef1f7;
  border-radius:8px;
  font-size:23px;
  width:35px;
  height:35px;
  cursor:pointer;
}

.sd-mr-detail-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid #edf0f5;
  font-size:12px;
}

.sd-mr-detail-row strong {
  text-align:left;
  overflow-wrap:anywhere;
}

.sd-mr-dialog-invest {
  width:100%;
  margin-top:16px;
  padding:12px;
  color:white;
  background:#1c3050;
  border:0;
  border-radius:10px;
  font-family:inherit;
  font-weight:800;
  cursor:pointer;
}

@media(max-width:360px) {
  #dn-investor-content .sd-market-approved-v1 {
    padding:10px;
    gap:8px;
  }

  .sd-market-approved-v1 .sd-mr-company h3 {
    font-size:14px;
  }

  .sd-market-approved-v1 .sd-mr-return-number {
    font-size:27px;
  }

  .sd-market-approved-v1 .sd-mr-funding {
    gap:4px;
    padding:8px 5px;
  }

  .sd-mr-total > strong,
  .sd-mr-raised > strong {
    font-size:10.5px;
  }

  .sd-market-approved-v1 .sd-mr-actions button {
    font-size:11px;
  }
}

/* END VALORA_APPROVED_MARKET_REDESIGN_V1 */


/* VALORA_GUARANTOR_LEFT_ALIGN_V1 */

.sd-market-approved-v1 .sd-mr-guarantor {
    justify-content: flex-start !important;
    text-align: left !important;
}

/* END VALORA_GUARANTOR_LEFT_ALIGN_V1 */


/* VALORA_MARKET_IMAGE_POLISH_V1 */

.sd-market-approved-v1 .sd-mr-image {
  height: 88px !important;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%);
  border: 1px solid #dbe5f1;
  box-shadow:
    0 8px 20px rgba(21, 44, 76, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.85);
}

.sd-market-approved-v1 .sd-mr-image img,
.sd-market-approved-v1 .sd-mr-image .sd-mr-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center;
  border-radius: 12px;
}

.sd-market-approved-v1 .sd-mr-image svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.sd-market-approved-v1 .sd-mr-hero {
  align-items: center;
  gap: 10px;
}

@media (max-width: 360px) {
  .sd-market-approved-v1 .sd-mr-image {
    height: 82px !important;
    border-radius: 14px;
    padding: 3px;
  }

  .sd-market-approved-v1 .sd-mr-image img,
  .sd-market-approved-v1 .sd-mr-image .sd-mr-cover,
  .sd-market-approved-v1 .sd-mr-image svg {
    border-radius: 10px;
  }
}

/* END VALORA_MARKET_IMAGE_POLISH_V1 */


/* VALORA_DETAILS_SHEET_V1 */
.sd-mr-details-dialog.sd-sheet-v1 {
  position:fixed; inset:auto 0 0; margin:0 auto; width:min(100%,480px);
  max-width:100%; height:92vh; height:92dvh; max-height:92vh; max-height:92dvh;
  box-sizing:border-box; padding:0; overflow:hidden; border:1px solid #e3e9f2;
  border-bottom:0; border-radius:24px 24px 0 0; background:#f5f7fb;
  color:#193252; box-shadow:0 -12px 48px rgba(15,35,65,.18);
  text-align:right; font-size:14px; line-height:1.65;
}
.sd-sheet-v1[open] { animation:sd-sheet-enter-v1 .25s ease-out both; }
@keyframes sd-sheet-enter-v1 { from {transform:translateY(100%)} to {transform:translateY(0)} }
.sd-sheet-v1::backdrop {background:rgba(15,23,42,.48)}
body:has(.sd-sheet-v1[open]) {overflow:hidden;}
.sd-sheet-v1 .sd-sheet-layout {display:flex;flex-direction:column;height:100%;min-height:0;padding:0;box-sizing:border-box;}
.sd-sheet-v1 .sd-sheet-header {flex:none;background:#fff;padding:8px 16px 12px;border-bottom:1px solid #e5eaf2;}
.sd-sheet-v1 .sd-sheet-handle {height:4px;width:36px;border-radius:8px;background:#c9d2df;margin:0 auto 8px;}
.sd-sheet-v1 .sd-mr-dialog-head h3 {font-size:18px;font-weight:800;margin:0;}
.sd-sheet-v1 .sd-mr-close {height:40px;width:40px;line-height:1;font-family:inherit;color:#193252;}
.sd-sheet-v1 .sd-sheet-scroll {flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 16px;display:flex;flex-direction:column;gap:12px;}
.sd-sheet-v1 .sd-sheet-scroll > * {flex:none;min-width:0;}
.sd-sheet-v1 .sd-sheet-hero {display:flex;align-items:center;gap:12px;padding:12px;border-radius:16px;background:#fff;border:1px solid #e2e9f3;}
.sd-sheet-v1 .sd-sheet-identity {flex:1;min-width:0;}
.sd-sheet-v1 .sd-sheet-meta {display:flex;align-items:center;gap:5px;flex-wrap:wrap;font-size:11px;}
.sd-sheet-v1 .sd-sheet-id {direction:ltr;background:#edf2f8;border-radius:8px;padding:2px 7px;font-weight:700;}
.sd-sheet-v1 .sd-sheet-identity h4 {font-size:20px;font-weight:800;margin:6px 0 2px;overflow-wrap:anywhere;}
.sd-sheet-v1 .sd-sheet-identity p {font-size:13px;color:#53657b;margin:0;overflow-wrap:anywhere;}
.sd-sheet-v1 .sd-sheet-cover {flex:0 0 34%;aspect-ratio:4/3;min-width:0;border:1px solid #dbe5f1;border-radius:13px;padding:3px;background:#eef4fb;overflow:hidden;box-sizing:border-box;box-shadow:0 4px 12px rgba(21,44,76,.08);}
.sd-sheet-v1 .sd-sheet-cover img,.sd-sheet-v1 .sd-sheet-cover svg {display:block;width:100%;height:100%;object-fit:contain;border-radius:10px;}
.sd-sheet-v1 .sd-sheet-returns {display:grid;grid-template-columns:1fr 1fr;gap:9px;}
.sd-sheet-v1 .sd-sheet-returns > div {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;padding:12px 5px;border-radius:14px;text-align:center;}
.sd-sheet-v1 .sd-sheet-returns span {font-size:12px;font-weight:600;}
.sd-sheet-v1 .sd-sheet-returns strong {font-size:28px;font-weight:800;line-height:1.35;}
.sd-sheet-v1 .sd-sheet-return-primary {background:linear-gradient(110deg,#147de4,#0751b6);color:white;}
.sd-sheet-v1 .sd-sheet-return-secondary {background:#e2edfe;color:#0754b7;}
.sd-sheet-v1 .sd-sheet-panel {background:#fff;border:1px solid #e2e9f3;border-radius:15px;padding:13px;}
.sd-sheet-v1 h5 {font-family:inherit;font-size:15px;font-weight:800;margin:0 0 10px;line-height:1.5;}
.sd-sheet-v1 .sd-sheet-amounts {display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.sd-sheet-v1 .sd-sheet-amounts > div {min-width:0;display:flex;flex-direction:column;gap:3px;}
.sd-sheet-v1 .sd-sheet-amounts span,.sd-sheet-v1 .sd-sheet-remaining span,.sd-sheet-v1 .sd-sheet-credit span {font-size:12px;color:#53657b;}
.sd-sheet-v1 .sd-sheet-amounts strong,.sd-sheet-v1 .sd-sheet-remaining strong {font-size:14px;font-weight:800;overflow-wrap:anywhere;}
.sd-sheet-v1 .sd-sheet-progress-label,.sd-sheet-v1 .sd-sheet-remaining {display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;margin-top:12px;}
.sd-sheet-v1 .sd-sheet-track {height:7px;border-radius:8px;background:#e3eaf4;overflow:hidden;margin-top:5px;}
.sd-sheet-v1 .sd-sheet-track i {display:block;height:100%;background:#1470a4;border-radius:8px;}
.sd-sheet-v1 .sd-sheet-remaining {border-top:1px solid #edf0f5;padding-top:10px;}
.sd-sheet-v1 .sd-sheet-guarantee,.sd-sheet-v1 .sd-sheet-credit {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.sd-sheet-v1 .sd-sheet-guarantee h5 {display:flex;align-items:center;gap:6px;margin-bottom:6px;}
.sd-sheet-v1 .sd-sheet-guarantee strong {font-size:15px;overflow-wrap:anywhere;}
.sd-sheet-v1 .sd-sheet-guarantee .sd-mr-bank-logo {width:38px;height:38px;object-fit:contain;flex:none;}
.sd-sheet-v1 .sd-sheet-credit > div:first-child {display:flex;flex-direction:column;gap:3px;}
.sd-sheet-v1 .sd-sheet-credit h5 {margin-bottom:4px;}
.sd-sheet-v1 .sd-sheet-credit strong {font-size:17px;}
.sd-sheet-v1 .sd-sheet-gauge {position:relative;width:112px;height:76px;flex:none;}
.sd-sheet-v1 .sd-sheet-gauge svg {display:block;width:100%;height:auto;}
.sd-sheet-v1 .sd-sheet-score {position:absolute;inset:23px 0 0;text-align:center;display:flex;flex-direction:column;line-height:1.25;}
.sd-sheet-v1 .sd-sheet-score strong {font-size:24px;font-weight:800;}
.sd-sheet-v1 .sd-sheet-document .sd-mr-detail-row {font-size:14px;padding:10px 0;}
.sd-sheet-v1 .sd-sheet-document .sd-mr-detail-row:last-child {border-bottom:0;padding-bottom:0;}
.sd-sheet-v1 .sd-sheet-document .sd-mr-detail-row span {display:flex;align-items:center;gap:6px;color:#53657b;}
.sd-sheet-v1 .sd-sheet-footer {flex:none;background:#fff;border-top:1px solid #e2e9f3;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));}
.sd-sheet-v1 .sd-mr-dialog-invest {display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;margin:0;border-radius:13px;font-size:15px;}
.sd-sheet-v1 .sd-sheet-unavailable {text-align:center;color:#53657b;font-size:13px;padding:10px;}
@media(max-width:360px) {.sd-sheet-v1 .sd-sheet-scroll {padding:10px;gap:9px;} .sd-sheet-v1 .sd-sheet-identity h4 {font-size:18px;} .sd-sheet-v1 .sd-sheet-returns strong {font-size:25px;} .sd-sheet-v1 .sd-sheet-amounts strong {font-size:13px;}}
@media(prefers-reduced-motion:reduce) {.sd-sheet-v1[open] {animation:none;}}
/* END VALORA_DETAILS_SHEET_V1 */


/* VALORA_INVESTMENT_SHEET_V1 */
.dn-invest-modal-overlay {
  align-items:flex-end !important; justify-content:center !important;
  padding:0 !important; background:rgba(15,23,42,.48);
}
.dn-invest-modal-overlay .dn-invest-modal {
  position:relative; box-sizing:border-box; width:min(100%,480px) !important;
  max-width:100% !important; max-height:92vh !important; max-height:92dvh !important;
  margin:0 !important; padding:14px 16px 0 !important;
  border-radius:24px 24px 0 0 !important; border:1px solid #e3e9f2;
  border-bottom:0; background:#f5f7fb; color:#193252;
  box-shadow:0 -12px 48px rgba(15,35,65,.18);
  overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain;
  text-align:right; direction:rtl; font-size:14px; line-height:1.65;
  animation:sd-invest-sheet-enter-v1 .25s ease-out both;
  scroll-padding-bottom:110px;
}
@keyframes sd-invest-sheet-enter-v1 {from{transform:translateY(100%)}to{transform:translateY(0)}}
.dn-invest-modal-overlay .dn-invest-modal::before {
  content:""; display:block; width:36px; height:4px; border-radius:8px;
  background:#c9d2df; margin:0 auto 12px;
}
body:has(.dn-invest-modal-overlay) {overflow:hidden;}
.dn-invest-modal h2,.dn-invest-modal h3 {font-size:18px;font-weight:800;line-height:1.5;}
.dn-invest-modal label {font-size:14px;font-weight:700;}
.dn-invest-modal input:not([type=checkbox]):not([type=radio]):not([type=hidden]) {
  box-sizing:border-box; max-width:100%; min-height:54px; border-radius:13px;
  border:1px solid #cbd9ec; background:#fff; font-family:inherit;
  font-size:clamp(18px,5vw,24px); font-weight:800; color:#193252;
  font-variant-numeric:tabular-nums;
}
.dn-invest-modal input:focus-visible {outline:2px solid #1470a4;outline-offset:2px;}
.dn-invest-modal .dn-invest-modal-summary {
  display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:9px; min-width:0;
}
.dn-invest-modal .dn-invest-modal-summary > * {
  box-sizing:border-box; min-width:0; max-width:100%;
  border:1px solid #e2e9f3; border-radius:14px; padding:12px 9px;
  background:#fff; text-align:right;
}
/* Four-item preview containers: only match actual four-child groups. */
.dn-invest-modal :is([class*="fee-preview"],[class*="fee-grid"],[class*="profit-summary"]):has(> :nth-child(4):last-child) {
  display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:9px;
}
.dn-invest-modal :is([class*="fee-preview"],[class*="fee-grid"],[class*="profit-summary"]):has(> :nth-child(4):last-child) > * {
  box-sizing:border-box;min-width:0;max-width:100%;border:1px solid #e2e9f3;
  border-radius:14px;padding:12px 9px;background:#fff;
}
.dn-invest-modal .dn-invest-modal-summary strong,
.dn-invest-modal :is([class*="fee-preview"],[class*="fee-grid"],[class*="profit-summary"]) strong {
  font-size:clamp(14px,4vw,19px);line-height:1.6;font-weight:800;
  font-variant-numeric:tabular-nums;word-break:normal;overflow-wrap:anywhere;
}
.dn-invest-modal .dn-invest-modal-summary small {font-size:12px;line-height:1.5;}
.dn-invest-modal .dn-invest-modal-actions {
  position:sticky !important; bottom:0; z-index:2; box-sizing:border-box;
  display:flex !important; flex-wrap:wrap; gap:8px;
  margin:16px -16px 0; padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));
  background:#fff; border-top:1px solid #e2e9f3;
}
.dn-invest-modal .dn-invest-modal-actions button {
  flex:1 1 120px; min-width:0; min-height:52px; border-radius:13px;
  font-family:inherit; font-size:14px; font-weight:700;
}
.dn-invest-modal .dn-invest-modal-actions button.dn-btn-primary:not(:disabled) {background:#193252;color:#fff;}
@media(max-width:360px) {
  .dn-invest-modal-overlay .dn-invest-modal {padding-inline:12px !important;}
  .dn-invest-modal .dn-invest-modal-actions {margin-inline:-12px;padding-inline:12px;}
  .dn-invest-modal .dn-invest-modal-summary > * {padding:10px 7px;}
}
@media(prefers-reduced-motion:reduce) {.dn-invest-modal-overlay .dn-invest-modal {animation:none;}}
/* END VALORA_INVESTMENT_SHEET_V1 */

/* VALORA_INVESTMENT_SHEET_V2 */
@keyframes valora-sheet-enter-v2 {
 from { transform:translateY(28px); opacity:.6; }
 to { transform:translateY(0); opacity:1; }
}
.dn-invest-modal-overlay {
 backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
 background:rgba(15,23,42,.48) !important;
 animation:none !important;
}
.dn-invest-modal-overlay .dn-invest-modal {
 animation:valora-sheet-enter-v2 150ms ease-out both !important;
 transition:none !important;
 box-shadow:0 -5px 18px rgba(15,35,65,.12) !important;
 background:#fff !important;
 padding:14px 16px 0 !important;
}
.sd-sheet-v1[open] { animation:valora-sheet-enter-v2 150ms ease-out both !important; }
.sd-sheet-v1::backdrop { backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-header {margin-bottom:14px !important;align-items:center;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-header h3 {font-size:18px !important; color:#193252 !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-summary {gap:8px !important;margin-bottom:14px !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-summary > div {padding:10px !important;background:#f8fafc !important;border:1px solid #e1e8f2 !important;border-radius:12px !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-summary strong {font-size:clamp(12px,3.5vw,15px) !important;line-height:1.65 !important;overflow-wrap:anywhere !important;white-space:normal !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-amount {min-height:54px !important;font-size:22px !important;border-radius:12px !important;letter-spacing:0 !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-amount:focus {outline:none !important;box-shadow:0 0 0 2px rgba(20,112,164,.12) !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview:not([hidden]) {
 display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;
 gap:8px !important;align-items:stretch !important;
 padding:0 !important;margin:12px 0 !important;border:0 !important;
 background:transparent !important;box-shadow:none !important;
}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview[hidden] {display:none !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview .dn-invest-live-divider {display:none !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview .dn-invest-live-item {
 display:flex !important;flex-direction:column !important;justify-content:space-between !important;align-items:stretch !important;
 grid-column:auto !important;grid-row:auto !important;min-width:0 !important;width:auto !important;max-width:100% !important;
 min-height:86px !important;height:auto !important;margin:0 !important;padding:11px 10px !important;
 border:1px solid #e1e8f2 !important;border-radius:12px !important;background:#f8fafc !important;box-shadow:none !important;text-align:right !important;
}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview .dn-invest-live-item:first-child {background:#edf5ff !important;border-color:#dceafb !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview .dn-invest-live-item.dn-invest-live-total-item {background:#e1edfd !important;border-color:#d2e4fa !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview .dn-invest-live-item > span {font-size:12px !important;font-weight:600 !important;color:#52647a !important;line-height:1.6 !important;margin:0 0 8px !important;white-space:normal !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview .dn-invest-live-item > strong {display:block !important;font-size:clamp(13px,3.7vw,17px) !important;font-weight:800 !important;line-height:1.7 !important;color:#193252 !important;white-space:normal !important;overflow-wrap:anywhere !important;word-break:normal !important;font-variant-numeric:tabular-nums;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview .dn-invest-live-item > strong.dn-invest-live-profit,
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview .dn-invest-live-item > strong.dn-invest-live-total {color:#0754b7 !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-field {margin-bottom:12px !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-actions {display:grid !important;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr) !important;gap:8px !important;margin:8px -16px 0 !important;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px)) !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-actions .dn-invest-modal-submit {order:-1 !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-actions .dn-btn {min-height:50px !important;width:100% !important;box-shadow:none !important;font-size:13px !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-actions .dn-invest-modal-submit:not(:disabled) {background:#193252 !important;color:#fff !important;}
@media(max-width:360px) {
 .dn-invest-modal-overlay .dn-invest-modal {padding-inline:12px !important;}
 .dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-actions {margin-inline:-12px !important;padding-inline:12px !important;}
 .dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview .dn-invest-live-item {padding:9px 7px !important;}
}
@media(prefers-reduced-motion:reduce) {
 .dn-invest-modal-overlay .dn-invest-modal,.sd-sheet-v1[open] {animation:none !important;}
}
/* END VALORA_INVESTMENT_SHEET_V2 */

/* VALORA_INVESTMENT_SHEET_V3 */
.dn-invest-modal-overlay .dn-invest-modal {background:#fff !important; border-radius:24px 24px 0 0 !important; padding:12px 16px 0 !important; max-width:480px !important; max-height:92vh !important; max-height:92dvh !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-header {margin-bottom:12px !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-header h3 {font-size:18px !important;line-height:1.5 !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-header p {display:none !important;}
.dn-invest-modal .sd-invest-hero-v3 {display:flex;align-items:center;gap:12px;min-width:0;padding:10px;margin:0 0 10px;border-radius:14px;background:linear-gradient(115deg,#edf3fc,#f7faff);}
.dn-invest-modal .sd-invest-cover-v3 {flex:0 0 86px;height:64px;border-radius:10px;overflow:hidden;background:#e0eafa;color:#1470a4;display:grid;place-items:center;}
.dn-invest-modal .sd-invest-cover-v3 svg {width:30px;height:30px;}
.dn-invest-modal .sd-invest-cover-v3 img {width:100%;height:100%;object-fit:cover;display:block;}
.dn-invest-modal .sd-invest-identity-v3 {flex:1;min-width:0;text-align:right;}
.dn-invest-modal .sd-invest-identity-v3 strong {display:block;font-size:16px;font-weight:800;color:#193252;overflow-wrap:anywhere;}
.dn-invest-modal .sd-invest-identity-v3 p {margin:3px 0 0;font-size:12px;color:#64748b;overflow-wrap:anywhere;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-summary {margin-bottom:12px !important;gap:8px !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-summary > div {padding:10px !important;min-width:0;background:#f8fafc !important;border-color:#e1e8f2 !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-amount {min-height:54px !important;letter-spacing:0 !important;word-spacing:0 !important;font-size:22px !important;text-align:right !important;direction:ltr !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview:not([hidden]) {grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important;margin:12px 0 !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview .dn-invest-live-item {min-height:68px !important;padding:10px !important;gap:4px !important;border-radius:12px !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview .dn-invest-live-item > span {margin:0 !important;font-size:12px !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview .dn-invest-live-item > strong {font-size:clamp(13px,3.6vw,17px) !important;letter-spacing:0 !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview .dn-invest-live-item:nth-child(3),
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview .dn-invest-live-item.dn-invest-live-total-item {grid-column:1 / -1 !important;display:flex !important;flex-direction:row !important;align-items:center !important;justify-content:space-between !important;flex-wrap:wrap !important;min-height:52px !important;gap:6px 12px !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview .dn-invest-live-item.dn-invest-live-total-item {background:linear-gradient(100deg,#1688f4,#0347b1) !important;border:0 !important;min-height:64px !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview .dn-invest-live-item.dn-invest-live-total-item > span {color:#fff !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview .dn-invest-live-item.dn-invest-live-total-item > strong.dn-invest-live-total {color:#fff !important;font-size:clamp(16px,4.5vw,21px) !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-limit-hint {font-size:11px !important;padding:9px 10px !important;gap:5px !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-actions {grid-template-columns:minmax(0,2fr) minmax(0,1fr) !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-actions .dn-invest-modal-submit:not(:disabled) {background:#193252 !important;border:1px solid #193252 !important;box-shadow:none !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-actions .dn-invest-modal-cancel {background:#fff !important;border:1px solid #dce4ee !important;}
.dn-invest-modal-overlay .dn-invest-modal .dn-invest-modal-actions .dn-btn:focus-visible {outline:2px solid #1470a4;outline-offset:2px;}
@media(max-width:360px) {
 .dn-invest-modal-overlay .dn-invest-modal {padding-inline:12px !important;}
 .dn-invest-modal .sd-invest-cover-v3 {flex-basis:72px;height:54px;}
 .dn-invest-modal-overlay .dn-invest-modal .dn-invest-live-preview .dn-invest-live-item {padding:8px !important;}
}
/* END VALORA_INVESTMENT_SHEET_V3 */


/* VALORA_MARKET_ANNUAL_RETURN_V1 */
.sd-market-approved-v1 .sd-mr-return.sd-mr-dual-return {
  position:relative; isolation:isolate; overflow:hidden; display:grid;
  direction:ltr; grid-template-columns:minmax(0,42fr) minmax(0,58fr);
  align-items:stretch; min-height:76px; padding:7px 8px; gap:0;
  background:linear-gradient(115deg,#1498ef 0%,#075bcf 49%,#0042ad 100%);
  border-radius:12px;
}
.sd-market-approved-v1 .sd-mr-dual-return::before {
  content:""; position:absolute; z-index:-1; pointer-events:none;
  width:125%; height:90%; left:-8%; bottom:-65%;
  border-radius:50% 42% 0 0; background:#409dff; opacity:.24;
  transform:rotate(-7deg);
}
.sd-market-approved-v1 .sd-mr-dual-return .sd-mr-period,
.sd-market-approved-v1 .sd-mr-dual-return .sd-mr-annual {
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  gap:3px; min-width:0; text-align:center; direction:rtl; padding:0 4px;
}
.sd-market-approved-v1 .sd-mr-dual-return .sd-mr-period {border-right:1px solid rgba(255,255,255,.52);}
.sd-market-approved-v1 .sd-mr-dual-return .sd-mr-period-label {font-size:11px; font-weight:600; color:#fff; line-height:1.5;}
.sd-market-approved-v1 .sd-mr-dual-return .sd-mr-return-number {font-size:clamp(22px,6vw,30px); line-height:1.2; color:#fff; font-weight:800;}
.sd-market-approved-v1 .sd-mr-dual-return .sd-mr-annual-label {
  display:inline-flex; align-items:center; justify-content:center; gap:5px;
  background:#f3f7ff; color:#0345ac; border-radius:999px; padding:2px 9px;
  font-size:11px; font-weight:800; line-height:1.5; white-space:nowrap;
}
.sd-market-approved-v1 .sd-mr-dual-return .sd-mr-annual-label svg {width:14px;height:14px;flex:none;color:#0345ac;}
.sd-market-approved-v1 .sd-mr-dual-return .sd-mr-annual-number {
  display:block; font-size:clamp(30px,9vw,43px); font-weight:900; line-height:1.15;
  color:#fff; white-space:normal; overflow-wrap:anywhere; font-variant-numeric:tabular-nums;
  letter-spacing:0;
}
/* END VALORA_MARKET_ANNUAL_RETURN_V1 */
/* VALORA_MODAL_STABILITY_V2 */

.dn-invest-modal-overlay {
    overflow: hidden !important;
    animation: none !important;
    transition: none !important;
    backdrop-filter: none !important;
}

.dn-invest-modal-overlay > .dn-invest-modal[role="dialog"] {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    width: min(100%, 480px) !important;
    margin: 0 !important;
    scrollbar-gutter: stable;
    overflow-anchor: none;
}

.sd-invest-cover-v3 {
    flex-shrink: 0 !important;
    contain: layout paint;
}

/* END VALORA_MODAL_STABILITY_V2 */
