:root {
  --app-bg: #f3fbf6;
  --panel: #ffffff;
  --ink: #0b2418;
  --muted: #60766a;
  --line: #d7eadf;
  --primary: #0b6b3a;
  --primary-dark: #053d22;
  --primary-soft: #e8f8ef;
  --gold: #14b86a;
  --gold-light: #c8f7d8;
  --leaf: #2f9d50;
  --olive: #7ecf7a;
  --walnut: #087a4a;
  --cream: #ffffff;
  --bitcoin: #25c06f;
  --green: #0f9f5b;
  --red: #18a276;
  --blue: #0f8f7e;
  --violet: #43b86a;
}

* {
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  /*background:*/
  /*  radial-gradient(circle at top left, rgba(178, 247, 205, .72), transparent 36rem),*/
  /*  radial-gradient(circle at bottom right, rgba(116, 226, 186, .42), transparent 34rem),*/
  /*  linear-gradient(135deg, #ffffff 0%, #f3fbf6 46%, #e4f8ed 100%);*/
  background: url("https://chatgpt.com/backend-api/estuary/public_content/enc/eyJpZCI6Im1fNmE1MGMxZjJmMTRjODE5MWJlNGYxMTE5YzQ5NmNhMmM6ZmlsZV8wMDAwMDAwMDU1MTQ3MjMwYWY1ZjFiMDU4OWMwYWM4ZiIsImdpem1vX2lkIjpudWxsLCJ0cyI6IjIwNjQ0IiwicCI6InB5aSIsImNpZCI6IjEiLCJzaWciOiJkMDZjZDljNWJkY2E4YjBjOWRkODBjZDJiYmNiNWFiYWU4OTQ1ZDQwMjdhZWZkNzhlNjc5N2JiZDY2NTJlNDk0IiwidiI6IjAiLCJjcyI6bnVsbCwiY2RuIjpudWxsLCJmbiI6bnVsbCwiY2QiOm51bGwsImNwIjpudWxsLCJtYSI6bnVsbH0=");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--ink);
}

a {
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100vh;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 30% 0%, rgba(126, 207, 122, .38), transparent 18rem),
    linear-gradient(180deg, #053d22 0%, #07542e 50%, #06351e 100%);
  border-right-color: rgba(114, 225, 159, .34) !important;
  box-shadow: 10px 0 35px rgba(5, 61, 34, .18);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #b8f4cd 52%, #1fc878);
  color: var(--primary-dark);
  font-size: 1.3rem;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(20, 184, 106, .28);
}

.brand-title {
  font-weight: 800;
  line-height: 1;
}

.sidebar .brand-title,
.sidebar .brand-row {
  color: #ffffff !important;
}

.sidebar .text-secondary {
  color: rgba(235, 255, 242, .72) !important;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  color: rgba(235, 255, 242, .8);
  border: 1px solid rgba(235, 255, 242, .08);
  border-radius: 8px;
  font-weight: 650;
}

.nav-link:hover,
.nav-link:focus {
  background: rgba(255, 255, 255, .11);
  color: #ffffff;
}

.nav-link.active {
  background: linear-gradient(135deg, #ffffff 0%, #c7f7d8 48%, #31ce82 100%);
  border-color: rgba(255, 255, 255, .55);
  color: var(--primary-dark);
  box-shadow: 0 12px 26px rgba(3, 35, 18, .2);
}

.sidebar-card {
  padding: 1rem;
  border: 1px solid rgba(195, 247, 214, .35);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.sidebar-card .text-secondary {
  color: rgba(235, 255, 242, .76) !important;
}

.main-panel {
  min-width: 0;
  padding: 1.25rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(20, 184, 106, .22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 20%, rgba(156, 244, 187, .32), transparent 15rem),
    linear-gradient(135deg, #053d22 0%, #087a4a 55%, #11a96a 100%);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(5, 61, 34, .2);
  position: relative;
  overflow: visible;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
  margin-left: auto;
}

.page-kicker {
  margin-bottom: .25rem;
  color: #c8f7d8;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar .h3 {
  color: #ffffff;
}

.card,
.modal-content,
.toast {
  border-color: rgba(20, 184, 106, .18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(243, 253, 247, .66));
  box-shadow:
    0 22px 55px rgba(5, 61, 34, .1),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  backdrop-filter: blur(22px) saturate(175%);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.card:hover {
  border-color: rgba(20, 184, 106, .28);
  box-shadow:
    0 28px 68px rgba(5, 61, 34, .14),
    inset 0 1px 0 rgba(255, 255, 255, .94);
  transform: translateY(-2px);
}

.card-header {
  border-bottom-color: rgba(20, 184, 106, .14);
  background: green;
  color:#fff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.btn,
.form-control,
.form-select,
.input-group-text {
  border-radius: 8px;
}

.btn {
  font-weight: 650;
}

.btn-primary {
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-color: #ffffff;
  --bs-btn-hover-bg: #0b9f5b;
  --bs-btn-hover-border-color: #0b9f5b;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-active-bg: #087a4a;
  --bs-btn-active-border-color: #087a4a;
  --bs-btn-active-color: #ffffff;
  background-image: linear-gradient(135deg, #16c878, #079456);
  box-shadow: 0 10px 24px rgba(20, 184, 106, .25);
}

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--gold);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-hover-color: #ffffff;
}

.btn-light {
  --bs-btn-bg: rgba(255, 255, 255, .92);
  --bs-btn-border-color: rgba(20, 184, 106, .2);
  --bs-btn-color: var(--primary);
  --bs-btn-hover-bg: #ffffff;
  --bs-btn-hover-border-color: var(--gold);
  --bs-btn-hover-color: var(--primary-dark);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
}

.mobile-top-logo {
  align-items: center;
  gap: .5rem;
  color: #ffffff;
  font-weight: 850;
  line-height: 1;
}

.mobile-top-logo .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 1rem;
  border-radius: 10px;
}

.profile-menu {
  position: relative;
}

.profile-toggle {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .4rem .7rem .4rem .42rem;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .15);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 28px rgba(5, 61, 34, .18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.profile-toggle:hover,
.profile-toggle:focus,
.profile-toggle.show {
  border-color: rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .24);
  color: #ffffff;
}

.profile-avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, #ffffff 0 14%, #b8f6d0 15% 42%, #14b86a 43% 100%);
  color: var(--primary-dark);
  box-shadow: 0 8px 22px rgba(5, 61, 34, .18);
}

.profile-user {
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
}

.glass-menu {
  min-width: 190px;
  padding: .45rem;
  border: 1px solid rgba(20, 184, 106, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 22px 55px rgba(5, 61, 34, .18);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
}

.glass-menu .dropdown-item {
  display: flex;
  align-items: center;
  min-height: 40px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
}

.glass-menu .dropdown-item:hover,
.glass-menu .dropdown-item:focus,
.glass-menu .dropdown-item.active {
  background: linear-gradient(135deg, rgba(20, 184, 106, .13), rgba(197, 248, 217, .5));
  color: var(--primary-dark);
}

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: minmax(340px, .88fr) minmax(0, 2fr);
  gap: 1rem;
  align-items: stretch;
}

.dashboard-welcome-card {
  min-height: 278px;
  padding: 1.25rem;
  border-color: rgba(20, 184, 106, .18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(243, 253, 247, .66));
  box-shadow:
    0 22px 55px rgba(5, 61, 34, .1),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  backdrop-filter: blur(22px) saturate(175%);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
}

.welcome-top,
.welcome-bottom,
.welcome-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.welcome-top {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(11, 107, 58, .1);
}

.user-code {
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .25rem .65rem;
  border: 1px solid rgba(11, 107, 58, .14);
  border-radius: 999px;
  background: rgba(232, 248, 239, .76);
  font-size: .86rem;
  font-weight: 800;
}

.welcome-art {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, #ffffff, #e8f8ef);
  color: var(--primary);
  font-size: 2rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 12px 26px rgba(5, 61, 34, .08);
}

.welcome-bottom {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 72px repeat(2, minmax(0, 1fr));
}

.welcome-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(11, 107, 58, .16);
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #dff9ea);
  color: var(--primary-dark);
  font-size: 1.65rem;
  box-shadow: 0 10px 22px rgba(20, 184, 106, .12);
}

.welcome-meta {
  min-width: 0;
  padding: .65rem .75rem;
  border: 1px solid rgba(11, 107, 58, .1);
  border-radius: 8px;
  background: rgba(232, 248, 239, .76);
}

.welcome-meta strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.18rem;
  line-height: 1.05;
}

.welcome-meta span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.welcome-actions {
  padding-top: 1rem;
  align-items: flex-end;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-stat-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 130px;
  padding: 1.25rem;
  overflow: hidden;
  border-color: rgba(20, 184, 106, .18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(243, 253, 247, .66));
  box-shadow:
    0 22px 55px rgba(5, 61, 34, .1),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  backdrop-filter: blur(22px) saturate(175%);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
}

/*.dashboard-stat-card::before {*/
/*  position: absolute;*/
/*  inset: 0 0 auto;*/
/*  height: 3px;*/
/*  background: linear-gradient(90deg, #053d22, #16c878);*/
/*  content: "";*/
/*}*/

.dashboard-stat-card:hover {
  border-color: rgba(11, 107, 58, .24);
  box-shadow:
    0 20px 48px rgba(5, 61, 34, .11),
    inset 0 1px 0 rgba(255, 255, 255, .98);
  transform: translateY(-2px);
}

.dashboard-stat-card span {
  display: block;
  margin-bottom: .55rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-stat-card strong {
  color: var(--primary-dark);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(11, 107, 58, .12);
  border-radius: 8px;
  background: linear-gradient(135deg, #e8f8ef, #ffffff);
  color: var(--primary);
  font-size: 1.35rem;
  box-shadow:
    0 10px 22px rgba(20, 184, 106, .08),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  flex: 0 0 auto;
}

.tree-toolbar .card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tree-search {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px auto;
  gap: .6rem;
  width: min(100%, 620px);
}

.tree-member span {
  color: var(--muted);
}

.tree-panel .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tree-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}

.tree-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.tree-legend span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.active {
  background: #16c878;
}

.legend-dot.pending {
  background: #f0b429;
}

.legend-dot.empty {
  background: #b8c9c0;
}

.tree-canvas {
  overflow-x: auto;
  overflow-y: auto;
  padding: 1rem 2rem 2rem;
  border: 1px solid rgba(11, 107, 58, .1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(238, 250, 243, .62));
}

.binary-tree-list,
.binary-tree-list ul {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 2rem 0 0;
  list-style: none;
}

.binary-tree-list {
  width: max-content;
  min-width: 1240px;
  padding: 1rem 2rem 0;
  margin: 0 auto;
  transform: scale(var(--tree-scale, 1));
  transform-origin: top center;
  transition: transform .18s ease;
}

.binary-tree-list ul::before {
  position: absolute;
  top: 0;
  left: 50%;
  height: 2rem;
  border-left: 2px solid rgba(11, 107, 58, .22);
  content: "";
}

.binary-tree-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 138px;
  padding: 2rem .4rem 0;
}

.binary-tree-list > li {
  padding-top: 0;
}

.binary-tree-list li::before,
.binary-tree-list li::after {
  position: absolute;
  top: 0;
  width: 50%;
  height: 2rem;
  border-top: 2px solid rgba(11, 107, 58, .22);
  content: "";
}

.binary-tree-list li::before {
  right: 50%;
}

.binary-tree-list li::after {
  left: 50%;
  border-left: 2px solid rgba(11, 107, 58, .22);
}

.binary-tree-list li:only-child::before,
.binary-tree-list li:only-child::after,
.binary-tree-list > li::before,
.binary-tree-list > li::after {
  display: none;
}

.binary-tree-list li:first-child::before,
.binary-tree-list li:last-child::after {
  border-top: 0;
}

.binary-tree-list li:first-child::after {
  border-radius: 8px 0 0 0;
}

.binary-tree-list li:last-child::before {
  border-right: 2px solid rgba(11, 107, 58, .22);
  border-radius: 0 8px 0 0;
}

.tree-member {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: .65rem;
  align-items: center;
  width: 154px;
  min-height: 76px;
  padding: .75rem;
  border: 1px solid rgba(11, 107, 58, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 28px rgba(5, 61, 34, .08);
}

.tree-member.root-node {
  width: 178px;
  border-color: rgba(20, 184, 106, .34);
  background: linear-gradient(145deg, #ffffff, #e8f8ef);
}

.tree-member.compact {
  width: 142px;
}

.tree-member strong {
  display: block;
  color: var(--primary-dark);
  font-size: .88rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.tree-member span {
  display: block;
  margin-top: .18rem;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.2;
}

.tree-member em {
  position: absolute;
  top: .45rem;
  right: .55rem;
  color: var(--primary);
  font-size: .68rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.tree-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.15rem;
}

.tree-avatar.active {
  background: linear-gradient(135deg, #087a4a, #16c878);
}

.tree-avatar.pending {
  background: linear-gradient(135deg, #b7791f, #f0b429);
}

.tree-avatar.empty {
  background: linear-gradient(135deg, #87978f, #b8c9c0);
}

.pending-node {
  border-style: dashed;
  background: rgba(255, 250, 235, .96);
}

.empty-node {
  border-style: dashed;
  background: rgba(248, 251, 249, .95);
}

.tree-member.is-highlighted {
  border-color: #16c878;
  box-shadow: 0 0 0 .22rem rgba(20, 184, 106, .16), 0 18px 36px rgba(5, 61, 34, .12);
}

.metric-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .58);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .92), transparent 7rem),
    radial-gradient(circle at 100% 0%, rgba(105, 238, 160, .34), transparent 9rem),
    linear-gradient(145deg, rgba(255, 255, 255, .48), rgba(232, 252, 241, .24));
  box-shadow:
    0 26px 58px rgba(5, 61, 34, .13),
    0 8px 20px rgba(20, 184, 106, .08),
    inset 0 1px 0 rgba(255, 255, 255, .92),
    inset 0 -1px 0 rgba(20, 184, 106, .08);
  backdrop-filter: blur(30px) saturate(185%);
  -webkit-backdrop-filter: blur(30px) saturate(185%);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.metric-card:hover {
  border-color: rgba(255, 255, 255, .82);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .98), transparent 7rem),
    radial-gradient(circle at 100% 0%, rgba(82, 230, 144, .42), transparent 9rem),
    linear-gradient(145deg, rgba(255, 255, 255, .62), rgba(232, 252, 241, .32));
  box-shadow:
    0 32px 72px rgba(5, 61, 34, .18),
    0 12px 26px rgba(20, 184, 106, .12),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -1px 0 rgba(20, 184, 106, .1);
  transform: translateY(-5px) scale(1.01);
}

.metric-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .24) 26%, transparent 27% 100%),
    linear-gradient(90deg, rgba(5, 61, 34, .9), rgba(20, 184, 106, .95), rgba(126, 231, 161, .86)) top / 100% 4px no-repeat;
  content: "";
  pointer-events: none;
}

.metric-card::after {
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(20, 184, 106, .24), rgba(126, 231, 161, .08) 48%, transparent 70%);
  content: "";
  pointer-events: none;
  filter: blur(1px);
}

.metric-card .card-body {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 1rem;
  min-height: 132px;
  padding: 1.25rem;
  position: relative;
  z-index: 1;
}

.metric-card .card-body > .small:first-of-type,
.metric-card .card-body > h2,
.metric-card .card-body > .small:last-child {
  grid-column: 2;
}

.metric-card .card-body > .small:first-of-type {
  color: var(--muted) !important;
  font-weight: 750;
  text-transform: uppercase;
  font-size: .72rem;
}

.metric-card .card-body > h2 {
  margin: .15rem 0 .1rem !important;
  color: var(--primary-dark);
  font-weight: 850;
  font-size: clamp(1.45rem, 1.9vw, 1.75rem);
  line-height: 1.05;
}

.metric-card .card-body > .small:last-child {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .26rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 106, .16);
  background: rgba(255, 255, 255, .48);
  color: var(--primary) !important;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.metric-icon {
  display: inline-grid;
  place-items: center;
  grid-row: 1 / span 3;
  width: 64px;
  height: 64px;
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 18px;
  color: var(--primary-dark);
  font-size: 1.6rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    0 16px 34px rgba(5, 61, 34, .18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.metric-icon.bg-green,
.metric-icon.bg-red,
.metric-icon.bg-blue,
.metric-icon.bg-violet {
  color: #ffffff;
}

.bg-bitcoin {
  background: linear-gradient(135deg, #f2fff6, #b9f7cf 45%, #16c878) !important;
}

.bg-green {
  background: linear-gradient(135deg, #75e8a5, var(--green)) !important;
}

.bg-red {
  background: linear-gradient(135deg, #63dcc2, var(--red)) !important;
}

.bg-blue {
  background: linear-gradient(135deg, #4fd5a0, var(--blue)) !important;
}

.bg-violet {
  background: linear-gradient(135deg, #95efad, var(--violet)) !important;
}

.progress {
  height: .55rem;
  background-color: rgba(20, 184, 106, .12);
}

.thin-progress {
  height: .45rem;
}

.allocation-list {
  display: grid;
  gap: 1.1rem;
}

.chart-wrap {
  min-height: 280px;
}

.chart-wrap svg {
  display: block;
  width: 100%;
  min-height: 280px;
}

.chart-grid line {
  stroke: rgba(20, 184, 106, .14);
  stroke-width: 1;
}

.chart-area {
  fill: url(#chartFill);
}

.chart-line {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-width: 5;
}

.chart-points circle {
  fill: var(--cream);
  stroke: var(--gold);
  stroke-width: 4;
}

.table {
  --bs-table-color: var(--ink);
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(20, 184, 106, .07);
}

.table th {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td {
  vertical-align: middle;
}

.coin-cell {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 180px;
}

.coin-cell small {
  display: block;
  color: var(--muted);
}

.coin {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  flex: 0 0 auto;
}

.coin-btc {
  background: linear-gradient(135deg, #f2fff6, #16c878);
}

.coin-eth {
  background: linear-gradient(135deg, #95efad, var(--violet));
}

.coin-sol {
  background: linear-gradient(135deg, #75e8a5, var(--green));
}

.coin-xrp {
  background: linear-gradient(135deg, #18b87a, #053d22);
}

.coin-ada {
  background: linear-gradient(135deg, #62dac1, var(--red));
}

.coin-usdt {
  background: linear-gradient(135deg, #b7f7cf, #0f9f5b);
}

.order-book {
  display: grid;
  gap: .5rem;
}

.order-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .75rem;
  align-items: center;
  min-height: 42px;
  padding: .55rem .75rem;
  border: 1px solid rgba(20, 184, 106, .18);
  border-radius: 8px;
  overflow: hidden;
}

.order-row::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--depth);
  content: "";
  opacity: .13;
}

.order-row.ask::before {
  background: var(--red);
}

.order-row.bid::before {
  background: var(--green);
}

.order-row span,
.order-row strong {
  position: relative;
  z-index: 1;
}

.spread-row {
  padding: .55rem;
  border-radius: 8px;
  background: rgba(20, 184, 106, .1);
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.feature-card {
  min-height: 210px;
  background:
    radial-gradient(circle at 100% 0%, rgba(148, 240, 181, .28), transparent 8rem),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(234, 250, 242, .9));
}

.profile-summary-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(184, 246, 208, .55), transparent 13rem),
    linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(235, 252, 243, .78));
}

.profile-hero-avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 22%, #ffffff 0 16%, #c6f8d8 17% 46%, #16c878 47% 100%);
  color: var(--primary-dark);
  font-size: 2.4rem;
  box-shadow: 0 24px 50px rgba(20, 184, 106, .24);
}

.profile-mini-stat {
  padding: .85rem;
  border: 1px solid rgba(20, 184, 106, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.profile-mini-stat span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
}

.profile-mini-stat strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1rem;
  background:
    radial-gradient(circle at 70% 12%, rgba(178, 247, 205, .42), transparent 22rem),
    linear-gradient(135deg, rgba(5, 61, 34, .96), rgba(8, 122, 74, .9) 52%, rgba(20, 184, 106, .74)),
    linear-gradient(135deg, #ffffff, #e8f8ef);
}

.auth-panel {
  width: min(100%, 460px);
}

.auth-panel-wide {
  width: min(100%, 680px);
}

.auth-link-bar {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.auth-link-bar a {
  pointer-events: auto;
}

.toast-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid rgba(20, 184, 106, .28);
  border-radius: 8px;
  background-color: #ffffff;
}

.dataTables_wrapper .page-link {
  color: var(--primary);
  border-color: rgba(20, 184, 106, .2);
  background-color: #ffffff;
}

.dataTables_wrapper .active > .page-link,
.dataTables_wrapper .page-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.form-control,
.form-select,
.input-group-text {
  border-color: rgba(20, 184, 106, .24);
  background-color: #ffffff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(20, 184, 106, .16);
}

.modal-header,
.modal-footer {
  border-color: rgba(20, 184, 106, .16);
}

.offcanvas {
  background: radial-gradient(circle at 30% 0%, rgba(126, 207, 122, .38), transparent 18rem), linear-gradient(180deg, #053d22 0%, #07542e 50%, #06351e 100%);
  color: var(--ink);
}

.offcanvas .offcanvas-title {
  color: #fff;
  font-weight: 800;
}

.offcanvas .nav-link {
  color: var(--primary-dark);
  border-color: rgba(20, 184, 106, .16);
  background: rgba(255, 255, 255, .78);
}

.offcanvas .nav-link:hover,
.offcanvas .nav-link:focus {
  color: var(--primary-dark);
  background: rgba(20, 184, 106, .1);
  border-color: rgba(20, 184, 106, .28);
}

.offcanvas .nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, #087a4a, #16c878);
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(20, 184, 106, .24);
}

.offcanvas .nav-link i {
  color: inherit;
}

@media (max-width: 991.98px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: .78rem;
  }

  .topbar-actions {
    flex-wrap: nowrap;
    width: auto;
  }

  .page-heading {
    display: none;
  }

  .mobile-top-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    transform: translate(-50%, -50%);
  }

  .profile-toggle {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .profile-avatar {
    width: 38px;
    height: 38px;
  }

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

  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tree-toolbar .card-body {
    align-items: stretch;
    flex-direction: column;
  }

  .tree-search {
    grid-template-columns: 1fr 150px auto;
    width: 100%;
  }

  .tree-panel .card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tree-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .main-panel {
    padding: .9rem;
  }

  .topbar {
    flex-wrap: nowrap;
  }

  .topbar-actions {
    width: auto;
  }

  .topbar-actions .btn {
    flex: 0 0 auto;
  }

  .metric-card .card-body {
    min-height: auto;
  }

  .dashboard-welcome-card {
    padding: 1rem;
  }

  .welcome-top,
  .welcome-bottom,
  .welcome-actions {
    align-items: flex-start;
  }

  .welcome-top,
  .welcome-actions {
    flex-direction: column;
  }

  .welcome-bottom {
    grid-template-columns: 1fr;
    gap: .75rem;
    margin-top: 1rem;
  }

  .welcome-art {
    width: 58px;
    height: 58px;
    font-size: 1.55rem;
  }

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

  .tree-search {
    grid-template-columns: 1fr;
  }

  .tree-actions .btn {
    flex: 1 1 auto;
  }

  .tree-canvas {
    overflow-x: auto;
    overflow-y: auto;
    padding: 1rem 1rem 2rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .binary-tree-list {
    min-width: 1240px;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .tree-member {
    scroll-snap-align: center;
  }

  .dashboard-stat-card {
    min-height: 116px;
    padding: 1.15rem 1.25rem;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .order-row {
    grid-template-columns: 1fr;
  }

  .auth-link-bar {
    position: static;
    padding: 1rem;
  }
}
















.menu-dropdown{
    margin-bottom:8px;
}

.submenu{
    margin:6px 0 10px 18px;
    padding-left:18px;
    border-left:2px solid rgba(255,255,255,.12);
}

.submenu .nav-link{
    min-height:40px;
    padding:10px 14px;
    border:none;
    background:transparent;
    color:rgba(255,255,255,.75);
    border-radius:10px;
    transition:.35s;
    font-size:14px;
}

.submenu .nav-link:hover{
    background:rgba(255,255,255,.08);
    color:#fff;
    transform:translateX(6px);
}

.submenu .nav-link.active{
    background:rgba(49,206,130,.15);
    color:#8cffc1;
    border-left:3px solid #31ce82;
}

.dropdown-arrow{
    transition:.35s ease;
    font-size:12px;
}

.nav-link[aria-expanded="true"] .dropdown-arrow{
    transform:rotate(180deg);
}

.collapsing{
    transition:height .35s ease;
}






/* ===========================
   OFFCANVAS
=========================== */

.offcanvas{
    width:290px;
    background:
    radial-gradient(circle at top left,rgba(126,207,122,.25),transparent 240px),
    linear-gradient(180deg,#053d22 0%,#07542e 55%,#042b17 100%);
    color:#fff;
    border-right:1px solid rgba(255,255,255,.08);
}

.offcanvas-header{
    border-bottom:1px solid rgba(255,255,255,.08);
}

.offcanvas-title{
    color:#fff;
    font-weight:700;
}

.btn-close-white{
    filter:invert(1);
}


/* ===========================
   MAIN MENU
=========================== */

.offcanvas .nav{
    gap:8px;
}

.offcanvas .nav-link{

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

    padding:12px 15px;

    border-radius:12px;

    color:rgba(255,255,255,.85);

    text-decoration:none;

    transition:.30s;

    font-weight:600;

    border:none;

    background:transparent;

}

.offcanvas .nav-link span{

    display:flex;

    align-items:center;

    gap:12px;

}

.offcanvas .nav-link i{

    font-size:17px;

}

.offcanvas .nav-link:hover{

    background:rgba(255,255,255,.08);

    color:#fff;

    transform:translateX(4px);

}

.offcanvas .nav-link.active{

    background:linear-gradient(135deg,#fff,#d7ffe7,#32d481);

    color:#04361c;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}


/* ===========================
   DROPDOWN
=========================== */

.menu-dropdown{

    margin-bottom:5px;

}

.submenu{

    margin:8px 0 10px 18px;

    padding-left:18px;

    border-left:2px solid rgba(255,255,255,.12);

}

.submenu a{

    display:flex;

    align-items:center;

    gap:10px;

    text-decoration:none;

    color:rgba(255,255,255,.72);

    padding:10px 12px;

    border-radius:10px;

    transition:.30s;

    margin:3px 0;

    font-size:14px;

}

.submenu a i{

    width:18px;

    text-align:center;

    font-size:15px;

}

.submenu a:hover{

    background:rgba(255,255,255,.08);

    color:#fff;

    transform:translateX(6px);

}

.submenu a.active{

    background:rgba(49,206,130,.18);

    color:#7ef9b8;

    border-left:3px solid #31ce82;

}


/* ===========================
   ARROW
=========================== */

.dropdown-arrow{

    transition:.35s;

    font-size:12px;

}

.nav-link[aria-expanded="true"] .dropdown-arrow{

    transform:rotate(180deg);

}


/* ===========================
   COLLAPSE
=========================== */

.collapsing{

    transition:height .35s ease;

}


/* ===========================
   LOGOUT
=========================== */

.logout{

    margin-top:15px;

    background:rgba(220,53,69,.15);

    border:1px solid rgba(220,53,69,.25);

}

.logout:hover{

    background:#dc3545 !important;

    color:#fff !important;

}


/* ===========================
   SCROLLBAR
=========================== */

.offcanvas-body{

    overflow-y:auto;

    scrollbar-width:thin;

}

.offcanvas-body::-webkit-scrollbar{

    width:5px;

}

.offcanvas-body::-webkit-scrollbar-thumb{

    background:rgba(255,255,255,.25);

    border-radius:20px;

}


/* ===========================
   MOBILE TOUCH EFFECT
=========================== */

.offcanvas .nav-link:active{

    transform:scale(.98);

}
