/* ============================================================
   GoldRock Industries — Investor Dashboard
   Light Cream Theme — DM Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

/* --- Tokens --- */
:root {
  --db-bg: #FDFAF4;
  --db-card-bg: #ffffff;
  --db-card-border: #EDE7D9;
  --db-card-hover: #b58c40;
  --db-gold: #b58c40;
  --db-gold-light: #e4b971;
  --db-gold-dark: #a1782b;
  --db-gold-grad: linear-gradient(180deg, #d4a85a 0%, #a1782b 100%);
  --db-green-dark: #1C3A2B;
  --db-beige: #FDF5E8;
  --db-text: #1a1a1a;
  --db-text-dim: #4a4a4a;
  --db-text-muted: #8A7A60;
  --db-radius: 16px;
  --db-radius-sm: 12px;
  --db-radius-xs: 8px;
  --db-ease: .28s cubic-bezier(.4, 0, .2, 1);
  --db-success: #2ECC9A;
  --db-danger: #ef4444;
  --db-warning: #f59e0b;
  --db-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  --db-shadow-gold: 0 4px 20px rgba(181, 140, 64, .2);
}

/* ============================================================
   1. PAGE SHELL
   ============================================================ */
.dashboard-page {
  background: var(--db-bg) !important;
  min-height: 100vh;
  color: var(--db-text);
  display: flex;
  flex-direction: column;
}

/* subtle cross pattern — light version */
.dashboard-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4a45b' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

/* font */
.dashboard-page,
.dashboard-page *:not(.material-icons) {
  font-family: 'DM Sans', sans-serif;
}

/* push footer down */
.dashboard-page .main-dashboard {
  flex: 1;
}

/* ============================================================
   2. HEADER — light transparent
   ============================================================ */
.dashboard-page .header {
  background: #fff !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--db-card-border) !important;
}

.dashboard-page .header .nav-link {
  color: var(--db-text-dim) !important;
}

.dashboard-page .header .nav-link:hover,
.dashboard-page .header .nav-link.active {
  color: var(--db-gold) !important;
}

/* ============================================================
   3. FOOTER — transparent, minimal
   ============================================================ */
.dashboard-page footer,
.dashboard-page footer.footer,
.dashboard-page footer.footer.dark-section {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  margin-top: auto;
}

.dashboard-page footer::before,
.dashboard-page footer.dark-section::before {
  display: none !important;
}

.dashboard-bottom-bar {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  margin: 0 !important;
  padding: 16px 0 !important;
  border-top: 1px solid var(--db-card-border) !important;
}

.dashboard-bottom-bar p,
.dashboard-bottom-bar a {
  color: var(--db-text-muted) !important;
  font-size: 13px;
}

.dashboard-bottom-bar a:hover {
  color: var(--db-gold) !important;
}

.dashboard-bottom-bar .lang-link {
  color: var(--db-text-muted) !important;
  font-weight: 600;
}

.dashboard-bottom-bar .active .lang-link,
.dashboard-bottom-bar .lang-link:hover {
  color: var(--db-gold) !important;
}

/* ============================================================
   4. MAIN DASHBOARD CONTAINER
   ============================================================ */
.main-dashboard {
  padding-bottom: 0;
}

.main-dashboard .container-lg {
  padding-top: 10px;
}

/* hide empty wrappers */
section.dashboard.container-lg {
  display: none;
}

.dashboard-header {
  display: none;
}

/* ============================================================
   5. OVERVIEW CARDS (legacy — kept for Tranchen tab)
   ============================================================ */
.overview-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.overview-block {
  background: var(--db-card-bg);
  border: 1.5px solid var(--db-gold);
  border-radius: var(--db-radius);
  padding: 24px;
  flex: 1;
  min-width: 280px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .10);
  transition: transform var(--db-ease), border-color var(--db-ease), box-shadow var(--db-ease);
  position: relative;
  overflow: hidden;
}

/* cross pattern on overview blocks */
.overview-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4a45b' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.overview-block>* {
  position: relative;
  z-index: 1;
}

.overview-block:hover {

  box-shadow: 0 10px 32px rgba(0, 0, 0, .12);
}

/* icon */
.overview-icon img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  padding: 10px;
  background: rgba(181, 140, 64, .08);
  border-radius: var(--db-radius-sm);
  border: 1px solid rgba(181, 140, 64, .12);
}

.overview-text {
  flex: 1;
}

.overview-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--db-text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
}

.overview-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--db-text);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -.5px;
}

.overview-value .profitePer {
  font-size: 13px;
  font-weight: 700;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-block;
  vertical-align: middle;
}

.overview-value .profitePer.text-success {
  background: rgba(46, 204, 154, .12) !important;
  color: var(--db-success) !important;
}

.overview-value .profitePer.text-danger {
  background: rgba(239, 68, 68, .1) !important;
  color: var(--db-danger) !important;
}

/* staggered load */
.overview-block {
  animation: fadeUp .45s ease both;
}

.overview-block:nth-child(1) {
  animation-delay: .03s;
}

.overview-block:nth-child(2) {
  animation-delay: .09s;
}

.overview-block:nth-child(3) {
  animation-delay: .15s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   6. GLASS PANEL (legacy table wrapper)
   ============================================================ */
.glass-panel {
  background: var(--db-card-bg);
  border: 1px solid var(--db-card-border);
  border-radius: var(--db-radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
  overflow: hidden;
  animation: fadeUp .45s ease .2s both;
}

/* ============================================================
   7. TABS
   ============================================================ */
li.nav-item {
  transform: none;
}

.tab-pane {
  background: transparent !important;
  height: inherit;
}

/* ============================================================
   8. TRANSACTIONS TABLE
   ============================================================ */
.transactions-section {
  overflow: hidden;
}

.transactions-section h5 {
  color: var(--db-text);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
}

#history_list {
  min-width: 650px;
}

table.dataTable th,
table.dataTable td,
table,
table tr,
table tr td {
  box-sizing: border-box !important;
  font-size: 14px;
  color: var(--db-text-dim);
}

table.dataTable thead th {
  border-left: none !important;
  border-right: none !important;
}

table.dataTable tbody tr {
  background-color: transparent !important;
  transition: background-color .2s;
}

table.dataTable tbody tr:hover {
  background-color: rgba(181, 140, 64, .04) !important;
}

table.dataTable.no-footer {
  border-top: 0 !important;
  border-bottom: 1px solid var(--db-card-border) !important;
}

table.dataTable thead th,
table.dataTable thead td {
  border-bottom: 0 !important;
  border-top: 1px solid var(--db-card-border) !important;
  border-bottom: 1px solid var(--db-card-border) !important;
  border-right: 0 !important;
  border-collapse: collapse;
  border-spacing: 0;
  height: 48px;
  vertical-align: middle;
  color: var(--db-text-muted);
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .8px;
}

table.dataTable thead th {
  background: linear-gradient(to right, #FDFAF4, #F9F3E8);
}

th {
  background-color: linear-gradient(to right, #FDFAF4, #F9F3E8) !important;
  border-right: none !important;
  padding: 10px 12px !important;
  font-weight: 700;
  color: var(--db-text-muted);
}

.table>:not(:last-child)>:last-child>* {
  border: 0;
}

.table-striped>tbody>tr:nth-of-type(even) {
  background: rgba(253, 245, 232, .4);
}

.table-striped>tbody>tr:nth-of-type(odd) {
  background: transparent;
}

td.c,
td.c span,
th.c,
td.c p {
  text-align: center;
  text-align-last: center;
}

table.dataTable thead th,
table.dataTable thead td {
  border-right: none !important;
}

.info-showing {
  position: absolute;
  margin-top: 17px;
  color: var(--db-text-muted);
  font-size: 13px;
  padding-left: calc(var(--bs-gutter-x) * .5);
}

th.dtfc-fixed-left,
td.dtfc-fixed-left {
  min-width: 225px !important;
  white-space: nowrap;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
  color: var(--db-text-muted);
  margin-bottom: 7px;
  font-size: 13px;
}

/* View button */
.history_view {
  background: var(--db-gold-grad);
  border: 1px solid rgba(181, 140, 64, .25);
  color: #fff !important;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .5px;
  padding: 5px 14px;
  border-radius: var(--db-radius-xs);
  box-shadow: 0 2px 8px rgba(181, 140, 64, .15);
  transition: all .25s ease;
  overflow: hidden;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 33px;
  position: relative;
}

.history_view::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  transition: left .5s ease;
}

.history_view:hover {
  box-shadow: var(--db-shadow-gold);
  color: #fff !important;
}

.history_view:hover::before {
  left: 100%;
}

.history_view:active {
  transform: translateY(0);
}

.history_view svg {
  width: 18px;
  height: 10px;
}

/* ============================================================
   9. STATUS PILLS & BADGES
   ============================================================ */
.table-statu-pill {
  width: 100px;
  display: inline-flex;
  padding: 4px 12px !important;
  border-radius: 50rem !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: .3px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.bg-success-subtle {
  background-color: rgba(46, 204, 154, .1) !important;
  color: #1a9a6e !important;
  border-color: rgba(46, 204, 154, .25) !important;
}

.bg-danger-subtle {
  background-color: rgba(239, 68, 68, .08) !important;
  color: #dc2626 !important;
  border-color: rgba(239, 68, 68, .2) !important;
}

/* ============================================================
   10. PROFILE STATUS
   ============================================================ */
.profile-status,
.pending-db {
  padding: 4px 12px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 10px !important;
  font-size: 13px !important;
  letter-spacing: .3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-status.uploaded,
.profile-status.approved {
  background: rgba(46, 204, 154, .1) !important;
  color: #1a9a6e !important;
  border: 1px solid rgba(46, 204, 154, .25) !important;
}

.uploaded {
  background-color: rgba(46, 204, 154, .1);
  color: #1a9a6e;
}

.pending-db {
  background: rgba(245, 158, 11, .1) !important;
  color: #b45309 !important;
  border: 1px solid rgba(245, 158, 11, .2) !important;
}

.uploadedStatus {
  width: 100px;
}

/* Status pills inside green header */
.stat-card-header .profile-status {
  font-size: 10px !important;
  padding: 3px 10px !important;
  letter-spacing: .5px;
}

.stat-card-header .profile-status.uploaded,
.stat-card-header .profile-status.approved {
  background: rgba(46, 204, 154, .2) !important;
  color: #5eedb8 !important;
  border: 1px solid rgba(46, 204, 154, .3) !important;
}

.stat-card-header .profile-status.pending-db {
  background: rgba(245, 158, 11, .15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, .25) !important;
}

.stat-card-header .profile-status.rejected {
  background: rgba(239, 68, 68, .15) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, .25) !important;
}

/* ============================================================
   11. PROGRESS BARS
   ============================================================ */
.progress {
  background: rgba(0, 0, 0, .04) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06);
  border-radius: 50px !important;
  height: 8px !important;
  overflow: hidden !important;
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden !important;
  color: white;
  text-align: center;
  white-space: nowrap;
  transition: width .7s cubic-bezier(.4, 0, .2, 1);
  border-radius: 50px;
  font-size: 0;
  line-height: 8px;
}

.my-custom-success {
  background: linear-gradient(90deg, #2ECC9A, #1a9a6e) !important;
  box-shadow: 0 0 10px rgba(46, 204, 154, .2);
  border-radius: 50px;
}

.progress-bar.bg-info {
  background: var(--db-gold-grad) !important;
  box-shadow: 0 0 10px rgba(181, 140, 64, .2);
}

.progress-bar.bg-secondary {
  background: rgba(0, 0, 0, .06) !important;
}

.progress .bg-secondary {
  background: transparent !important;
  color: var(--db-text-muted) !important;
}

.profile-content {
  margin-top: 18px;
}

.profile-content .progress {
  margin-bottom: 12px;
}

/* ============================================================
   12. BUTTONS
   ============================================================ */
.buy-btn-dashboard {
  background: var(--db-gold-grad);
  border: 1px solid rgba(181, 140, 64, .25);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 9px 24px;
  border-radius: var(--db-radius-xs);
  box-shadow: 0 3px 12px rgba(181, 140, 64, .2);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.buy-btn-dashboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
  transition: left .5s ease;
}

.buy-btn-dashboard:hover {

  box-shadow: 0 5px 20px rgba(181, 140, 64, .3);
  color: #fff;
}

.buy-btn-dashboard:hover::before {
  left: 100%;
}

.buy-btn-dashboard:active {
  transform: translateY(0);
}

.buy-btn-dashboard:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(181, 140, 64, .15), 0 3px 12px rgba(181, 140, 64, .2);
}

button:disabled {
  background-color: #e8e8e8 !important;
  color: #999 !important;
  cursor: not-allowed;
  opacity: .5;
  box-shadow: none !important;
}

.golden-btn {
  border: 0 !important;
  background: var(--db-gold-grad);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  border-radius: var(--db-radius-xs);
  transition: all .25s ease;
}

.golden-btn:hover {
  box-shadow: var(--db-shadow-gold);
}

.bg-transparent {
  background-color: transparent !important;
  border: 1px solid var(--db-card-border) !important;
}

.dashboard-btn {
  max-width: 150px;
  min-width: 140px !important;
  font-size: 12px;
  height: 30px;
  padding: 0;
}

.profile-btn {
  width: 150px;
  font-size: 14px;
  padding: 5px 20px !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-btn-w {
  width: 160px !important;
}

.profile-col .dashboard-btn-w {
  margin-top: 16px;
  height: 30px;
}

/* ============================================================
   13. FORMS
   ============================================================ */
.dashboard-page .contact-form input,
.dashboard-page .contact-form textarea,
.dashboard-page .form-control,
.dashboard-page .form-select,
.dashboard-page select {
  border: none !important;
  border: 1px solid rgba(255, 217, 0, 0) !important;
  border-radius: 0 !important;
  padding: 12px 4px !important;
  width: 100% !important;
  background: transparent;
  font-size: 15px;
  color: var(--db-text);
  transition: border-color var(--db-ease);
}

.dashboard-page .form-control:focus,
.dashboard-page .form-select:focus,
.dashboard-page select:focus {
  border-bottom-color: var(--db-gold) !important;
  outline: none;
  box-shadow: none !important;
  color: var(--db-text);
}

.dashboard-page .form-control::placeholder {
  color: var(--db-text-muted);
}

.registration-form .col-md-12 {
  margin-bottom: 16px;
}

.registration-form .err_input {
  border: 1px solid var(--db-danger) !important;
}

#confirm_subscribe_modal .err_input {
  border: 2px solid var(--db-danger) !important;
  background-color: rgba(239, 68, 68, .03) !important;
}

#confirm_subscribe_modal .err_input:focus {
  border-color: var(--db-danger) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .08) !important;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  background-image: none;
  border-radius: 0;
  outline: none;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

.form-field select {
  background: url(../images/down-chevron.svg) no-repeat right 10px center;
  background-size: 20px;
}

.dashboard-select select,
.dashboard-select .form-select,
#kyc-data-modal select,
#kyc-data-modal .form-select {
  background: rgba(0, 0, 0, .02) url(../images/down-chevron.svg) no-repeat right 8px center !important;
  background-size: 16px !important;
  padding-right: 30px !important;
}

#confirm_subscribe_modal #investment,
#confirm_subscribe_modal #price {
  text-align: right;
  padding-right: 50px;
}

/* ============================================================
   14. MODALS — Matches website login modal style
   ============================================================ */
.dashboard-page .modal {
  z-index: 1055 !important;
}

.dashboard-page .modal-backdrop {
  z-index: 1050 !important;
  background-color: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
}

.dashboard-page .modal-content {
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4a45b' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"), #fff;
  border: none;
  border-radius: var(--db-radius) !important;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
}

.dashboard-page .modal-header {
  background: transparent;
  border: 0 !important;
  padding: 24px 24px 0;
  position: relative;
}

.dashboard-page .modal-header::after {
  display: none;
}

.dashboard-page .modal-header .btn-close {
  position: absolute !important;
  right: 16px !important;
  top: 16px !important;
  z-index: 2;
  opacity: 0.6;
  filter: none !important;
}

.dashboard-page .modal-header .btn-close:hover {
  opacity: 0.7 !important;
}

.dashboard-page .modal-title {
  font-size: 20px !important;
  font-weight: 700;
  color: #1a1a1a;
  width: 100%;
  text-align: center;
}

.dashboard-page .modal-body {
  padding: 20px 32px 12px !important;
}

.dashboard-page .modal-body h5,
.dashboard-page .modal-body h4 {
  color: #1a1a1a;
}

.dashboard-page .modal-body label,
.dashboard-page .modal-body p {
  color: #555;
}

.dashboard-page .modal-footer {
  border-top: none;
  padding: 4px 32px 20px;
  justify-content: center !important;
}

/* Inputs — match login modal */
.dashboard-page .modal .form-control,
.dashboard-page .modal .form-select,
.dashboard-page .modal input[type="text"],
.dashboard-page .modal input[type="email"],
.dashboard-page .modal input[type="password"],
.dashboard-page .modal input[type="number"],
.dashboard-page .modal input[type="tel"],
.dashboard-page .modal textarea {
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  transition: all .2s ease;
}

.dashboard-page .modal .form-control:focus,
.dashboard-page .modal input:focus,
.dashboard-page .modal textarea:focus {
  background: #fff !important;
  border: 1px solid var(--db-gold) !important;
  box-shadow: 0 0 0 3px rgba(181, 140, 64, .08) !important;
}

.dashboard-page .modal .form-control::placeholder,
.dashboard-page .modal input::placeholder {
  color: #aaa !important;
}

.dashboard-page .modal .form-control:disabled,
.dashboard-page .modal input:disabled {
  background: #f0f0f0 !important;
  border-color: #e0e0e0 !important;
  color: #999 !important;
}

/* Buttons — gold gradient pill (matches page buttons) */
.dashboard-page .modal .btn-primary,
.dashboard-page .modal-footer .btn-primary {
  background: var(--db-gold-grad) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 10px 32px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.dashboard-page .modal .btn-primary::before,
.dashboard-page .modal-footer .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
  transition: left .5s ease;
}

.dashboard-page .modal .btn-primary:hover,
.dashboard-page .modal-footer .btn-primary:hover {
  box-shadow: 0 5px 20px rgba(181, 140, 64, .3) !important;
  color: #fff !important;
}

.dashboard-page .modal .btn-primary:hover::before,
.dashboard-page .modal-footer .btn-primary:hover::before {
  left: 100%;
}

.dashboard-page .modal .btn-primary:active {
  transform: scale(0.98);
}

.dashboard-page .modal .btn-secondary {
  background: rgba(0, 0, 0, .05) !important;
  color: #666 !important;
  border: 1px solid rgba(0, 0, 0, .1) !important;
  border-radius: 50px !important;
  padding: 10px 32px;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  overflow: hidden;
  transition: all .25s ease;
}

.dashboard-page .modal .btn-secondary:hover {
  background: rgba(0, 0, 0, .08) !important;
  color: #333 !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .08) !important;
}

/* Logo in header — left-aligned for PDF modals, centered for others */
.dashboard-page .modal-header .modal-logo {
  display: block;
  margin: 0 auto;
  height: 50px;
  pointer-events: none;
}

.dashboard-page .pdf-modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 20px !important;
}

.dashboard-page .pdf-modal-header .modal-logo {
  margin: 0 !important;
  height: 32px;
}

/* PDF modal actions — fullscreen + close grouped right, vertically centered */
.dashboard-page .pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Fullscreen toggle button */
.dashboard-page .modal .fullscreen-toggle {
  position: absolute !important;
  right: 48px !important;
  top: 16px !important;
  z-index: 9999 !important;
  color: #555 !important;
  opacity: 1 !important;
  transition: color .2s ease;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
}

.dashboard-page .pdf-modal-header .fullscreen-toggle {
  position: static !important;
  z-index: auto !important;
}

.dashboard-page .modal .fullscreen-toggle:hover {
  color: var(--db-gold) !important;
}

.dashboard-page .modal .fullscreen-toggle .material-icons {
  font-size: 22px;
  color: inherit !important;
}

/* Close button */
.dashboard-page .modal .btn-close {
  position: absolute !important;
  right: 16px !important;
  top: 16px !important;
  z-index: 9999 !important;
  padding: .5rem !important;
  margin: 0 !important;
  opacity: .5 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  filter: none !important;
  transition: opacity .2s ease;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
}

.dashboard-page .pdf-modal-header .btn-close {
  position: static !important;
  margin: 0 !important;
}

.dashboard-page .modal .btn-close:hover {
  opacity: .8 !important;
}

.dashboard-page .modal.modal-static .modal-dialog {
  transform: none !important;
}

/* All modal buttons — fully rounded pill shape */
.dashboard-page .modal .btn,
.dashboard-page .modal button[type="button"],
.dashboard-page .modal button[type="submit"] {
  border-radius: 50px !important;
}

/* Modal footer buttons — uniform size */
.dashboard-page .modal-footer .btn,
.dashboard-page .modal-footer button {
  min-width: 140px !important;
  width: auto !important;
  padding: 12px 32px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  transition: all .25s ease;
}

/* ============================================================
   15. USER PROFILE
   ============================================================ */
.user-profile h3,
.transactions h3 {
  margin-top: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--db-text);
}

.user-profile {
  border-radius: var(--db-radius) !important;
}

.profile-card .card {
  border-radius: var(--db-radius-sm) !important;
  border: 1px solid var(--db-card-border);
  background: transparent;
}

.kyc-card {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.kyc-bottom {
  min-width: 350px;
  gap: 20px;
}

p#user-id-p {
  padding: 6px 12px !important;
  background: rgba(181, 140, 64, .15);
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--db-gold-dark);
}

#db_change_password {
  padding: 8px 0;
  font-weight: 500 !important;
  cursor: pointer;
  color: var(--db-gold) !important;
  font-size: 14px;
  transition: color var(--db-ease);
}

#db_change_password:hover {
  color: var(--db-gold-dark) !important;
  text-shadow: none !important;
}

/* ============================================================
   16. INVESTMENT SUMMARY
   ============================================================ */
.investment-summary {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border-radius: var(--db-radius);
}

.summary-column {
  flex: 1;
  text-align: left;
}

.summary-column p {
  margin: 5px 0;
}

.profitePer {
  font-size: 13px;
  margin-left: 12px;
  font-weight: 700;
}

.priceVal {
  font-size: 26px;
  color: var(--db-text);
  font-weight: 800;
}

/* ============================================================
   17. TRANCHEN — Card Grid
   ============================================================ */

/* Summary stat mini-cards — green header / white body pattern */
.tranchen-stat-header {
  background: var(--db-green-dark);
  color: rgba(255, 255, 255, .75);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 14px 18px;
  margin: 0 10px;
  border-radius: 12px 12px 0 0;
  text-align: left;
}

.tranchen-stat-body {
  position: relative;
  z-index: 1;
  margin-top: -8px;
  background: #fff;
  border: 1.5px solid var(--db-gold);
  border-radius: var(--db-radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .10);
  overflow: hidden;
}

.tranchen-stat-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4a45b' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.tranchen-stat-body>* {
  position: relative;
  z-index: 1;
}

.tranchen-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--db-gold);
  line-height: 1.2;
  letter-spacing: -.5px;
}

/* Section title */
.tranchen-section-title {
  color: var(--db-gold);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .2px;
}

/* Tranche cards */
.tranche-card {
  border-radius: var(--db-radius);
  overflow: hidden;
  transition: transform var(--db-ease), box-shadow var(--db-ease);
  animation: fadeUp .45s ease both;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tranche-card:nth-child(1) {
  animation-delay: .03s;
}

.tranche-card:nth-child(2) {
  animation-delay: .09s;
}

.tranche-card:nth-child(3) {
  animation-delay: .15s;
}

.tranche-card:nth-child(4) {
  animation-delay: .21s;
}

.tranche-card:hover {

  box-shadow: 0 10px 32px rgba(0, 0, 0, .12);
}

.tranche-card-top {
  background: var(--db-green-dark);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tranche-card-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.tranche-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
}

.tranche-badge.completed {
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .7);
}

.tranche-badge.active {
  background: var(--db-gold-grad);
  color: #fff;
  box-shadow: 0 2px 6px rgba(161, 120, 43, .35);
  animation: badgePulse 2.5s ease-in-out infinite;
}

.tranche-badge.upcoming {
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .65);
  border: 1px solid rgba(255, 255, 255, .25);
}

@keyframes badgePulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .7;
  }
}

.tranche-card-body {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--db-gold);
  border-top: none;
  border-radius: 0 0 var(--db-radius) var(--db-radius);
  padding: 16px;
  overflow: hidden;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.tranche-card-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4a45b' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.tranche-card-body>* {
  position: relative;
  z-index: 1;
}

.tranche-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.tranche-card-row:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, .04);
}

.tranche-card-key {
  font-size: 12px;
  font-weight: 600;
  color: var(--db-text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.tranche-card-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--db-text);
}

.tranche-card-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.tranche-card-progress-wrap .progress {
  flex: 1;
  background: rgba(0, 0, 0, .04);
  border-radius: 3px;
}

.tranche-card-pct {
  font-size: 11px;
  font-weight: 700;
  color: var(--db-text-muted);
  min-width: 30px;
  text-align: right;
}

/* Active card accent */
.tranche-card.active .tranche-card-top {
  background: linear-gradient(135deg, var(--db-green-dark), #24503a);
}

.tranche-card.active .tranche-card-body {
  border-color: var(--db-gold);
}

/* ============================================================
   18. DOWNLOADS
   ============================================================ */
.dl-card {
  min-width: 280px;
  max-width: 380px;
  flex: 1 1 280px;
}

.dl-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(181, 140, 64, .08);
  border: 1px solid rgba(181, 140, 64, .12);
  color: var(--db-gold);
  font-size: 18px;
  flex-shrink: 0;
}

.dl-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--db-text) !important;
  line-height: 1.3;
}

.dl-card-format {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, .5) !important;
  text-transform: uppercase;
  letter-spacing: .8px;
  background: rgba(255, 255, 255, .1);
  padding: 2px 8px;
  border-radius: 4px;
}

.dl-card-desc {
  font-size: 13px;
  color: var(--db-text-muted) !important;
  line-height: 1.5;
}

.dl-card-btn {
  background: var(--db-gold-grad);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 20px;
  transition: all .25s ease;
  max-width: max-content;
  min-width: 150px;
}

.dl-card-btn:hover {

  box-shadow: 0 4px 14px rgba(181, 140, 64, .25);
  color: #fff !important;
}

/* ============================================================
   19. DROPDOWN / TOGGLE
   ============================================================ */
.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-toggle::after {
  content: none;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 18px;
  margin: auto 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d4d4d4;
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

.slider.round {
  border-radius: 20px;
}

input:checked+.slider {
  background-color: var(--db-success);
}

input:focus+.slider {
  box-shadow: 0 0 2px rgba(46, 204, 154, .3);
}

input:checked+.slider:before {
  transform: translateX(15px);
}

.form-check-input:checked {
  background-color: var(--db-success) !important;
  border: none !important;
}

.form-check-input,
.form-check-input:focus,
.form-check-input:hover {
  box-shadow: none !important;
}

/* ============================================================
   20. MISC
   ============================================================ */
.spin-icon {
  animation: spinIcon .8s linear infinite;
}

@keyframes spinIcon {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.cursor-pointer {
  cursor: pointer;
}

.gap {
  gap: 20px;
}

.dashboard-lang {
  margin-top: 92px !important;
  margin-right: 32px !important;
}

#warning-badge {
  font-size: .6em !important;
  margin-left: -.9em;
  margin-top: .5em;
}

#warning_message_modal li {
  list-style-type: disc;
  padding-left: 0;
  list-style-position: inside;
}

p {
  color: var(--db-text-dim);
}

.dashboard-title {
  margin-bottom: 16px !important;
}

/* ============================================================
   21. DROPZONE
   ============================================================ */
.dropzone .dz-error-message {
  top: 20% !important;
  background-color: rgba(0, 0, 0, .8);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--db-radius-xs);
  text-align: center;
  z-index: 10;
  font-size: 13px;
}

.dz-progress,
.dropzone .dz-preview .dz-error-message:after {
  display: none !important;
}

/* ============================================================
   22. SIGNATURES
   ============================================================ */
.signature-container {
  padding: 10px;
  margin-bottom: 10px;
}

#signature_canvas {
  display: block;
  margin: 0 auto;
  touch-action: none;
}

.signature-controls {
  padding-top: 8px;
}

#clear_signature {
  font-size: 12px;
  padding: 4px 8px;
}

.signature-container small {
  font-size: 11px;
  color: var(--db-text-muted);
}

.signature-preview-box {
  font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
  background: rgba(0, 0, 0, .02);
  border: 2px dashed var(--db-card-border);
  transition: all .3s ease;
  border-radius: var(--db-radius-xs);
}

.signature-preview-box:hover {
  border-color: var(--db-gold);
  background: rgba(181, 140, 64, .03);
}

#typed_signature_preview,
#dashboard_typed_signature_preview,
#investor_typed_signature_preview {
  font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
  font-weight: normal;
  min-height: 24px;
}

#typed_signature_input,
#dashboard_typed_signature_input {
  font-family: 'Helvetica', 'Arial', sans-serif;
}

.signature-preview-container {
  border: 1px solid var(--db-card-border);
  border-radius: var(--db-radius-xs);
  background: rgba(0, 0, 0, .02);
}

#no_user_signature_canvas {
  border: 1px solid var(--db-card-border);
  border-radius: var(--db-radius-xs);
  background: white;
  cursor: crosshair;
}

#no_user_signature_canvas,
#dashboard_signature_canvas {
  border-radius: var(--db-radius-xs) !important;
  background: white !important;
  cursor: crosshair !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 240px !important;
  min-height: 240px !important;
  box-sizing: border-box !important;
  visibility: visible !important;
  opacity: 1 !important;
  border: 1px solid var(--db-card-border) !important;
}

#no_user_clear_signature,
#dashboard_clear_signature {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 10 !important;
  font-size: 13px !important;
  padding: 4px 10px !important;
  border-radius: var(--db-radius-xs) !important;
  background: rgba(255, 255, 255, .9) !important;
  color: #666 !important;
  border: 1px solid rgba(0, 0, 0, .08) !important;
  transition: all .2s ease;
}

#no_user_clear_signature:hover,
#dashboard_clear_signature:hover {
  background: white !important;
  color: #333 !important;
}

/* Signature Tabs */
#signatureTypeTabs .nav-link,
#investorSignatureTypeTabs .nav-link {
  border-color: rgba(0, 0, 0, .08);
  font-size: 16px;
  padding: 8px 16px;
}

#signatureTypeTabs .nav-link.active,
#investorSignatureTypeTabs .nav-link.active {
  color: var(--db-gold);
  border-color: rgba(0, 0, 0, .08) rgba(0, 0, 0, .08) #fff;
}

#signatureTypeTabs .nav-link:hover,
#investorSignatureTypeTabs .nav-link:hover {
  border-color: #e9ecef #e9ecef #dee2e6;
}

#dashboardSignatureTypeTabs,
#investorSignatureTypeTabs {
  margin-top: 3px;
}

#dashboardSignatureTypeTabs .nav-link,
#investorSignatureTypeTabs .nav-link {
  color: var(--db-text-muted);
  transform: translateY(3px);
}

#dashboardSignatureTypeTabs .nav-link.active,
#investorSignatureTypeTabs .nav-link.active {
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

#dashboard-type-tab,
#dashboard-draw-tab,
#investor-type-tab,
#investor-draw-tab {
  color: var(--db-gold) !important;
  opacity: .5;
  border: 0 !important;
}

#signature_button_text,
#dashboard_signature_button_text {
  font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
  font-size: 16px;
  font-style: italic;
}

#btn_no_user_sign_device,
#btn_sign_device {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.signature-section {
  background-color: rgba(0, 0, 0, .01);
  border-top: 2px solid rgba(0, 0, 0, .04);
}

.signature-canvas-container {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
}

.signature-section .nav-tabs {
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.signature-section .nav-tabs .nav-link {
  font-weight: 500;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  color: #999;
}

.signature-section .nav-tabs .nav-link.active {
  background: white;
  color: var(--db-gold);
  border-bottom: 3px solid var(--db-gold);
  font-weight: 600;
}

.signature-preview-box.border-danger,
#no_user_signature_canvas.border-danger,
#dashboard_signature_canvas.border-danger {
  border: 2px solid var(--db-danger) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .08) !important;
}

/* Tab pane visibility */
.tab-pane:not(.fade) {
  display: none;
}

.tab-pane:not(.fade).active {
  display: block !important;
}

.tab-pane:not(.fade).show {
  display: block !important;
}

/* ============================================================
   23. FULLSCREEN MODALS
   ============================================================ */
#pdf_preview_modal .fullscreen,
#history_preview_modal .fullscreen {
  width: 100vw;
  height: 100vh !important;
  margin: 0;
  top: 0;
  left: 0;
  position: fixed;
}

.modal.fullscreen.fade.show .modal-content {
  height: 100% !important;
  min-height: 100% !important;
}

.modal.fullscreen {
  width: 100vw;
  height: 100vh;
  margin: 0;
  top: 0;
  left: 0;
  position: fixed;
}

.fullscreen .modal-header,
.fullscreen .modal-body {
  border-radius: 0 !important;
}

.fullscreen .modal-content,
.fullscreen .modal-dialog {
  border-radius: 0 !important;
  margin: 0 !important;
  width: 100vw;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh;
}

.fullscreen-modal .modal-dialog {
  margin: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
}

.fullscreen-modal .modal-content {
  height: 100vh;
  border-radius: 0;
}

.modal-header .fullscreen-toggle .material-icons,
.modal-header .fullscreen-toggle i {
  font-size: 22px;
  color: #555;
  transition: color .2s ease;
}

.modal-header .fullscreen-toggle:hover .material-icons,
.modal-header .fullscreen-toggle:hover i {
  color: var(--db-gold);
}

/* PDF Preview */
#pdf_preview_modal .modal-dialog {
  margin: 1rem auto;
}

#pdf_preview_modal .modal-header {
  margin-bottom: -2px;
}

#pdf_preview_modal .modal-body {
  padding: 0 !important;
}

#pdf_preview_modal .modal-footer {
  flex-shrink: 0;
  padding: 1rem;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

#pdf_preview_modal .modal-footer button {
  z-index: 1050;
  position: relative;
}

#pdf_preview_modal .err_input {
  border: 2px solid var(--db-danger) !important;
  background-color: rgba(239, 68, 68, .03) !important;
}

#pdf_preview_modal .err_input:focus {
  border-color: var(--db-danger) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .08) !important;
}

/* Password Toggle */
.password-toggle-icon {
  transition: color .2s ease;
}

.password-toggle-icon:hover {
  color: var(--db-gold) !important;
}

/* KYC Modal */
#kyc-data-modal .registration-form {
  width: 100%;
  max-width: 100%;
}

/* ============================================================
   24. RESPONSIVE (legacy)
   ============================================================ */
@media (max-width:991.98px) {
  .overview-block {
    min-width: 100%;
  }

  .overview-value {
    font-size: 24px;
  }

  .tranchen-stat-value {
    font-size: 1.4rem;
  }

  .signature-preview-container {
    min-width: 150px !important;
    width: 100% !important;
    margin-top: 10px;
  }

  #investorSignatureTabContent .d-flex.flex-column.flex-md-row {
    flex-direction: column !important;
  }

  .signature-section .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .signature-btn-confirm {
    margin-top: 30px !important;
  }
}

@media (min-width:992px) {
  #investorSignatureTabContent .tab-pane {
    min-height: 200px;
  }

  .signature-section .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .signature-btn-confirm {
    height: 258px;
  }
}

@media (max-width:768px) {
  #kyc-data-modal .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }

  #kyc-data-modal .registration-form .col-lg-2,
  #kyc-data-modal .registration-form .col-lg-3,
  #kyc-data-modal .registration-form .col-lg-4,
  #kyc-data-modal .registration-form .col-lg-5,
  #kyc-data-modal .registration-form .col-lg-6,
  #kyc-data-modal .registration-form .col-lg-9 {
    width: 100%;
    margin-bottom: 10px;
  }

  #signature_canvas {
    width: 100%;
    max-width: 280px;
    height: 100px;
  }

  .signature-container {
    padding: 8px;
  }

  .overview-block {
    padding: 18px;
  }

  .nav-tabs .nav-item .nav-link {
    padding: 10px 12px !important;
    font-size: 13px;
  }
}

@media (max-width:576px) {
  .overview-block {
    min-width: 100%;
    padding: 16px;
  }

  .overview-value {
    font-size: 20px;
  }

  .overview-label {
    font-size: 11px;
  }

  .buy-btn-dashboard {
    padding: 7px 18px;
    font-size: 12px;
  }
}

/* ============================================================
   25. TOP BAR — Pill Nav Container + Buy Button
   ============================================================ */
.db-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.db-topbar .nav-pills {
  background: #fff;
  border: 1px solid #E0D8CC;
  border-radius: 50px;
  padding: 4px;
  gap: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}

.db-pill {
  background: transparent !important;
  border: none !important;
  border-radius: 50px !important;
  color: var(--db-text-dim) !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .2px;
  min-width: 130px;
  padding: 10px 22px !important;
  transition: all var(--db-ease);
  white-space: nowrap;
}

.db-pill:hover {
  background: rgba(181, 140, 64, .06) !important;
  color: var(--db-gold-dark) !important;
}

.db-pill.active {
  background: var(--db-gold-grad) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(181, 140, 64, .25);
}

.db-buy-btn {
  background: var(--db-gold-grad);
  border: none;
  color: #fff;
  width: 250px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .4px;
  padding: 10px 28px;
  border-radius: 50px;
  box-shadow: 0 3px 12px rgba(181, 140, 64, .2);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}

.db-buy-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
  transition: left .5s ease;
}

.db-buy-btn:hover {
  box-shadow: 0 5px 20px rgba(181, 140, 64, .3);
  color: #fff;
}

.db-buy-btn:hover::before {
  left: 100%;
}

.db-buy-btn:active {
  transform: translateY(0);
}

/* ============================================================
   26. STAT CARDS — Overlapping Green Header + White Body
   ============================================================ */
.stat-cards .col-md-4:nth-child(1) .stat-card-body {
  animation: fadeUp .45s ease .03s both;
}

.stat-cards .col-md-4:nth-child(2) .stat-card-body {
  animation: fadeUp .45s ease .09s both;
}

.stat-cards .col-md-4:nth-child(3) .stat-card-body {
  animation: fadeUp .45s ease .15s both;
}

#investorTabContent .tranchen-stat-header,
#investorTabContent .tranche-card-top,
#investorTabContent .stat-card-header {
  background: #4f3e1c;
}

.stat-card-header {
  background: var(--db-green-dark);
  color: rgba(255, 255, 255, .75);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 15px 20px;
  margin: 0 12px;
  border-radius: 14px 14px 0 0;
}

/* Equal-height columns */
#profile-tab-pane .row,
#downloads-tab-pane .row,
.stat-cards {
  align-items: stretch;
}

#profile-tab-pane .col-md-4,
#downloads-tab-pane .col-md-6,
.stat-cards .col-md-4 {
  display: flex;
  flex-direction: column;
}

.stat-card {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stat-card-body {
  position: relative;
  z-index: 1;
  margin-top: -10px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  border: 1.5px solid var(--db-gold);
  border-radius: var(--db-radius);
  padding: 34px 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .10);
  transition: transform var(--db-ease), box-shadow var(--db-ease);
  overflow: hidden;
  flex: 1;
}

/* Inner content fills height, button pushed to bottom */
.stat-card-body>.flex-grow-1 {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stat-card-body>.flex-grow-1>.d-flex:last-child,
.stat-card-body>.flex-grow-1>button:last-child,
.stat-card-body>.flex-grow-1>a:last-child {
  margin-top: auto !important;
}

.stat-card-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4a45b' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.stat-card-body>* {
  position: relative;
  z-index: 1;
}

.stat-card-body:hover {

  box-shadow: 0 10px 32px rgba(0, 0, 0, .12);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--db-gold-grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(181, 140, 64, .25);
}

.stat-card-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--db-text);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -.5px;
}

.stat-card-value .profitePer {
  font-size: 13px;
  font-weight: 700;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-block;
  vertical-align: middle;
}

.stat-card-value .profitePer.text-success {
  background: rgba(46, 204, 154, .1) !important;
  color: var(--db-success) !important;
}

.stat-card-value .profitePer.text-danger {
  background: rgba(239, 68, 68, .08) !important;
  color: var(--db-danger) !important;
}

.stat-card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--db-text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 4px 0 0;
}

/* ============================================================
   27. TRANSACTIONS WRAPPER — Beige Container
   ============================================================ */
.transactions-wrapper {
  background: #193226;
  border-radius: var(--db-radius);
  padding: 24px;
  animation: fadeUp .45s ease .2s both;
}

.transactions-wrapper-header {
  margin-bottom: 16px;
}

.transactions-wrapper-header h5 {
  color: var(--db-gold);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .2px;
  margin: 0;
}

.transactions-wrapper .table-inner {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #EDE7D9;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
  overflow: hidden;
}

/* Override table styles inside transactions wrapper */
.transactions-wrapper table.dataTable thead th,
.transactions-wrapper table thead th {
  background: linear-gradient(to right, #FDFAF4, #F9F3E8) !important;
  border-bottom: 2px solid #EDE7D9 !important;
  border-top: none !important;
  color: var(--db-text-muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.transactions-wrapper table.dataTable tbody tr {
  background-color: #fff !important;
}

.transactions-wrapper table.dataTable tbody tr:hover {
  background-color: rgba(253, 245, 232, .6) !important;
}

.transactions-wrapper .table-striped>tbody>tr:nth-of-type(even) {
  background: rgba(253, 250, 244, .5) !important;
}

.transactions-wrapper .table-striped>tbody>tr:nth-of-type(odd) {
  background: #fff !important;
}

/* Dashboard & Investor Callout */
#dashboardCallout,
#investorCallout {
  border-radius: var(--db-radius);
}

#dashboardCallout.alert-success,
#investorCallout.alert-success {
  background: rgb(169 255 189);
  border-color: rgba(40, 167, 69, 0.3);
  color: #034a13;
}

#dashboardCallout.alert-danger,
#investorCallout.alert-danger {
  background: rgba(220, 53, 70, 0.84);
  border-color: rgba(220, 53, 69, 0.3);
  color: #dc3545;
}

#dashboardCallout.alert-warning,
#investorCallout.alert-warning {
  background: rgba(255, 193, 7, 0.25);
  border-color: rgba(255, 193, 7, 0.3);
  color: #856404;
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 0;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--db-gold-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(181, 140, 64, .2);
}

.empty-state-icon svg {
  color: #fff;
  width: 28px;
  height: 28px;
}

.empty-state h6 {
  color: var(--db-text);
  font-weight: 700;
  font-size: 15px;
  margin: 0;
}

.empty-state p {
  color: var(--db-text-muted);
  font-size: 13px;
  font-weight: 400;
  margin: 0;
}

/* ============================================================
   28. RESTRUCTURED LAYOUT — Responsive
   ============================================================ */
@media (max-width:991.98px) {
  .stat-card-value {
    font-size: 22px;
  }
}

@media (max-width:767.98px) {
  .db-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .db-topbar .nav-pills {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
  }

  .db-buy-btn {
    align-self: stretch;
    text-align: center;
  }

  .db-pill {
    padding: 8px 16px !important;
    font-size: 13px;
  }

  .stat-card-body {
    padding: 18px;
  }

  .stat-card-value {
    font-size: 20px;
  }

  .stat-card-icon {
    width: 40px;
    height: 40px;
  }

  .stat-card-icon svg {
    width: 18px;
    height: 18px;
  }

  .stat-card-header {
    padding: 12px 16px 26px;
  }

  .transactions-wrapper {
    padding: 16px;
  }

  .transactions-wrapper-header h5 {
    font-size: 15px;
  }
}

@media (max-width:575.98px) {
  .stat-card-value {
    font-size: 18px;
  }

  .stat-card-label {
    font-size: 11px;
  }

  .stat-card-body {
    gap: 14px;
    padding: 16px;
  }

  .stat-card-icon {
    width: 38px;
    height: 38px;
  }

  .stat-card-icon svg {
    width: 16px;
    height: 16px;
  }

  .stat-card-header {
    left: 8px;
    right: 8px;
    padding: 10px 14px 24px;
    font-size: 10px;
  }

  .transactions-wrapper {
    padding: 12px;
  }
}