:root {
  --nf-black: #17232d;
  --nf-black-soft: #22313e;
  --nf-gold: #cfa54f;
  --nf-gold-strong: #e1bf71;
  --nf-gold-soft: #f1ddb3;
  --nf-ivory: #f4ecda;
  --nf-ivory-deep: #e6d7b0;
  --nf-text: #17232d;
  --nf-white: #fffaf0;
  --nf-border: rgba(207, 165, 79, 0.24);
  --nf-shadow: 0 18px 40px rgba(23, 35, 45, 0.16);
}

body {
  background: linear-gradient(180deg, #f5efdf 0%, #ebdfc5 100%);
  color: var(--nf-text);
}

body.account-body.accountbg {
  background: radial-gradient(circle at top, rgba(207, 165, 79, 0.22), transparent 35%), linear-gradient(180deg, #17232d 0%, #22313e 100%);
}

a {
  color: var(--nf-gold-strong);
}

a:hover {
  color: var(--nf-black);
}

.left-sidenav {
  background: linear-gradient(180deg, #13202a 0%, #223240 100%);
  box-shadow: 10px 0 30px rgba(23, 35, 45, 0.16);
}

.left-sidenav .brand {
  background: transparent;
  border-bottom: 1px solid rgba(234, 216, 177, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  overflow: hidden;
  box-sizing: border-box;
}

.left-sidenav .brand .logo {
  width: 100%;
}

.left-sidenav .brand .logo-dashboard {
  display: flex;
  justify-content: center;
}

.left-sidenav .brand .web-logo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.left-sidenav .brand .web-logo img {
  max-width: 100%;
  width: auto;
  height: auto !important;
  max-height: 52px;
  object-fit: contain;
}

.left-sidenav-menu li > a {
  color: rgba(255, 253, 248, 0.78);
}

.left-sidenav-menu li > a:hover,
.left-sidenav-menu li > a:focus,
.left-sidenav-menu li.mm-active > a {
  color: var(--nf-white);
  background: rgba(200, 169, 107, 0.12);
}

.left-sidenav-menu .menu-icon {
  color: var(--nf-gold-soft);
}

.left-sidenav-menu .menu-label {
  color: rgba(234, 216, 177, 0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar,
.navbar-custom {
  background: rgba(244, 236, 218, 0.94);
}

.topbar .navbar-custom {
  box-shadow: 0 8px 24px rgba(23, 35, 45, 0.08);
}

.topbar .nav-link,
.topbar .topbar-icon,
.nav-user-name {
  color: var(--nf-black) !important;
}

.page-content {
  background: transparent;
}

.page-content > .container-fluid {
  padding-top: 18px;
}

.page-title-box,
.card,
.modal-content,
.dropdown-menu {
  background: rgba(255, 250, 240, 0.94);
  border: 1px solid var(--nf-border);
  box-shadow: var(--nf-shadow);
}

.card-header,
.modal-header {
  background: rgba(244, 236, 218, 0.92);
  border-bottom: 1px solid var(--nf-border);
}

.card-title,
.page-title,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--nf-black);
}

.breadcrumb-item a,
.breadcrumb-item.active,
.text-muted {
  color: #7b6c59 !important;
}

.badge.badge-soft-success,
.badge.badge-success {
  background: rgba(200, 169, 107, 0.16) !important;
  color: var(--nf-gold-strong) !important;
  border: 1px solid rgba(200, 169, 107, 0.26);
}

.btn-primary,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:focus,
.btn-primary:hover {
  background: var(--nf-gold) !important;
  border-color: var(--nf-gold) !important;
  color: var(--nf-black) !important;
  box-shadow: none !important;
}

.btn-outline-primary,
.btn-outline-primary:focus,
.btn-outline-primary:hover {
  border-color: var(--nf-gold) !important;
  color: var(--nf-gold-strong) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.btn-outline-primary:hover {
  background: rgba(200, 169, 107, 0.12) !important;
}

.btn-soft-primary,
.bg-primary,
.badge-primary {
  background: var(--nf-black) !important;
  color: var(--nf-white) !important;
  border-color: var(--nf-black) !important;
}

.form-control,
.custom-select,
.input-group-text {
  background: var(--nf-white);
  border-color: rgba(200, 169, 107, 0.26);
  color: var(--nf-text);
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--nf-gold);
  box-shadow: 0 0 0 0.1rem rgba(200, 169, 107, 0.18);
}

.table th {
  color: var(--nf-black);
}

.table td {
  color: #4a4033;
}

.account-body .card {
  border: 1px solid rgba(234, 216, 177, 0.18);
  overflow: hidden;
}

.auth-header-box {
  background: linear-gradient(135deg, #17232d 0%, #243544 100%) !important;
}

.auth-header-box .text-muted,
.auth-header-box .font-weight-semibold,
.auth-header-box h4,
.auth-header-box p {
  color: var(--nf-white) !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background: rgba(200, 169, 107, 0.14);
  color: var(--nf-gold-strong);
}

.nav-pills .nav-link {
  color: var(--nf-black);
}

.bg-light-alt {
  background: rgba(246, 241, 231, 0.84) !important;
}

.tradingview-widget-container {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--nf-border);
  box-shadow: var(--nf-shadow);
  background: rgba(255, 253, 248, 0.92);
}

.dashboard-widget-card {
  min-height: 150px;
}

.dashboard-widget-card .tradingview-widget-container {
  min-height: 150px;
}

.dashboard-market-shell {
  border: 1px solid rgba(200, 169, 107, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.96) 0%, rgba(244, 236, 218, 0.88) 100%);
  overflow: hidden;
}

.dashboard-market-chart {
  padding: 14px;
}

.dashboard-market-chart .tradingview-widget-container {
  min-height: 500px;
  border-radius: 14px;
}

.dashboard-market-forex {
  display: block;
  width: 100%;
  height: 350px;
  border: 0;
  border-top: 1px solid rgba(200, 169, 107, 0.18);
  background: rgba(255, 253, 248, 0.9);
}

.dashboard-page .page-title-box {
  margin-bottom: 1.5rem;
}

.dashboard-overview-row {
  margin-bottom: 0.75rem;
}

.dashboard-hero-card {
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(207, 165, 79, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(23, 35, 45, 0.98) 0%, rgba(34, 49, 62, 0.96) 100%);
  color: var(--nf-white);
}

.dashboard-hero-card .card-body {
  padding: 1.9rem 2rem;
}

.dashboard-eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(234, 216, 177, 0.2);
  border-radius: 999px;
  color: var(--nf-gold-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-hero-title {
  margin-bottom: 0.7rem;
  color: var(--nf-white);
  font-size: 2rem;
  line-height: 1.1;
}

.dashboard-hero-copy {
  max-width: 42rem;
  margin-bottom: 1.35rem;
  color: rgba(255, 253, 248, 0.76);
  font-size: 0.98rem;
}

.dashboard-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.dashboard-metric-pill {
  min-width: 170px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(234, 216, 177, 0.16);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.06);
}

.dashboard-metric-label,
.dashboard-summary-label {
  display: block;
  margin-bottom: 0.35rem;
  color: #8d7752;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-metric-pill strong {
  color: var(--nf-white);
  font-size: 1rem;
}

.dashboard-hero-card .dashboard-metric-label {
  color: rgba(234, 216, 177, 0.74);
}

.dashboard-summary-card .card-body {
  padding: 1.7rem;
}

.dashboard-summary-total {
  margin-bottom: 1.15rem;
  font-size: 2.15rem;
  line-height: 1.05;
}

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.dashboard-summary-tile,
.dashboard-stat-tile {
  padding: 1rem;
  border: 1px solid rgba(200, 169, 107, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.96) 0%, rgba(244, 236, 218, 0.88) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dashboard-summary-tile strong {
  color: var(--nf-black);
  font-size: 1.15rem;
  line-height: 1.2;
}

.dashboard-market-strip > div,
.dashboard-bottom-row > div {
  margin-bottom: 1.25rem;
}

.dashboard-market-card .card-header,
.dashboard-data-card .card-header,
.dashboard-report-card .card-header {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.dashboard-case-table thead th {
  border-top: 0;
  border-bottom: 1px solid rgba(200, 169, 107, 0.16);
  background: rgba(246, 241, 231, 0.75);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-case-table tbody tr + tr td {
  border-top: 1px solid rgba(200, 169, 107, 0.12);
}

.dashboard-case-table td {
  padding-top: 1rem;
  padding-bottom: 1rem;
  vertical-align: middle;
}

.dashboard-note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(200, 169, 107, 0.18);
  border-radius: 14px;
  background: rgba(244, 236, 218, 0.78);
  color: #6f5f4c;
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: center;
}

.dashboard-data-card .mt-5,
.dashboard-data-card hr {
  display: none;
}

.dashboard-data-card p.text-center {
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(200, 169, 107, 0.18);
  border-radius: 14px;
  background: rgba(244, 236, 218, 0.78);
  color: #6f5f4c;
  font-size: 0.92rem;
  line-height: 1.6;
}

.dashboard-report-top {
  padding-bottom: 1.2rem;
}

.dashboard-report-banner {
  border: 1px solid rgba(200, 169, 107, 0.16);
  background: linear-gradient(180deg, rgba(23, 35, 45, 0.95) 0%, rgba(34, 49, 62, 0.95) 100%) !important;
  color: var(--nf-white) !important;
}

.dashboard-report-stats .row {
  row-gap: 0.9rem;
}

.dashboard-stat-tile {
  height: 100%;
}

.dashboard-stat-tile .text-muted {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .left-sidenav .brand {
    padding: 0 12px;
  }

  .left-sidenav .brand .web-logo img {
    max-height: 38px;
  }

  .dashboard-hero-title {
    font-size: 1.6rem;
  }

  .dashboard-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .dashboard-hero-card .card-body,
  .dashboard-summary-card .card-body {
    padding: 1.25rem;
  }

  .dashboard-hero-metrics {
    flex-direction: column;
  }
}
