:root {
  /* ── BACKGROUNDS ───────────────────────────── */
  --bg-page: #060d1f;
  --bg-card: #0d1a32;
  --bg-card-dark: #090f22;
  --bg-stats: #091426;
  --bg-active: rgba(255, 255, 255, 0.1);

  /* ── BORDERS ──────────────────────────────── */
  --border: rgba(255, 255, 255, 0.07);

  /* ── PRIMARY COLORS (CD) ─────────────────── */
  --primary-blue: #000c45;
  --accent-gold: #f8b85c;
  --accent-gold-light: #ffd98a;

  /* ── SECONDARY / UI COLORS ───────────────── */
  --accent-blue: #4a7cfe;

  /* ── STATUS COLORS ───────────────────────── */
  --success: #2ecc71;
  --success-dark: #27ae60;

  --error: #e74c3c;
  --error-dark: #c0392b;

  /* ── TEXT COLORS ─────────────────────────── */
  --text-primary: #e8edf7;
  --text-muted: #4e6585;
  --text-label: #3d5270;

  /* ── INTERACTIONS ────────────────────────── */
  --time-active: #f8b85c;

  /* ── BOOTSTRAP OVERRIDES ─────────────────── */
  --bs-gray-400: #ced4da;

  --bs-font-sans-serif: "IBM Plex Sans", sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 0.875rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;
}

/* ── GLOBAL ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  outline: none;
  font-family: var(--bs-body-font-family);
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255, 255, 255, 0.12) var(--bg-card-dark) !important;
}

body {
  color: var(--text-primary);
  font-size: 14px;
  min-height: 100vh;
  background: url("../img/bg-blue.jpg");
  background-size: cover;
  background-color: var(--primary-blue);
}

.form-control {
  outline: none;
  background: transparent !important;
  min-width: 60px !important;
}

#UnteraccountInfo {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
}

#UnteraccountInfo span {
  margin-right: 7px;
}

#UnteraccountInfo span:first-child {
  color: var(--text-primary);
}

#ReinvestKarten {
  display: block;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  border-radius: var(--bs-border-radius);
}

body .main-content {
  margin-left: 0 !important;
}

body .footer {
  left: 0 !important;
}

#layout-wrapper {
  background: transparent !important;
  box-shadow: none !important;
}

.page-content {
  padding: 20px 0;
}

.vertical-menu,
.navbar-brand-box {
  border-right: 1px solid transparent;
}

.navbar-brand-box {
  border: none !important;
}

/* ── HEADER ─────────────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 32px;
  background-color: transparent !important;
}

.app-header .logo-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.app-header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

/* Hamburger Menü für Mobile */
.hamburger-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s;
}

.hamburger-menu:hover {
  background: var(--bg-active);
  color: var(--text-active);
}

.hamburger-menu i {
  font-size: 1.7rem;
}

/* Desktop Einstellungen Button */
.desktop-settings {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent !important;
  border: none !important;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.desktop-settings:hover {
  background: var(--bg-active);
  color: var(--text-active);
}

.desktop-settings i {
  font-size: 1.3rem;
}

/* ── MAIN WRAP ──────────────────────────────────── */
.main-wrap {
  padding: 28px 32px;
}

/* ── SECTION LABEL ─────────────────────────────── */
.section-label,
.inv-label {
  margin: 0 0 7px 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

/* ── ACCOUNT TIERS ─────────────────────────────── */
.tier-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tier-item {
  display: flex;
  align-items: left;
  gap: 12px;
  margin: 0 0 1rem 0;
  padding: 0.7rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s;
  font-size: 1.1rem;
}

.tier-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.tier-item.active {
  background: var(--bg-active);
  border-color: transparent !important;
  color: var(--text-primary);
}

.tier-item.active .tier-icon,
.tier-item.active i.cryptoicon,
.btn-crypto.active i,
.btn-crypto.active i.cryptoicon {
  color: var(--accent-gold);
}

.tier-item.active .tier-price, .tier-item.active .tier-cards {
  color: var(--text-primary);
}

.tier-name {
  flex: 1;
  font-size: 0.9rem;
  padding-top: 3px;
  font-weight: 500;
  text-align: left;
  text-transform: uppercase;
}

.tier-item > i {
  font-size: 1.5rem;
  position: relative;
  top: -5px;
  margin-bottom: -10px;
}

.tier-price, .tier-cards {
  padding: 3px 7px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 7px;
}

.tier-price > i, .tier-cards > i {
  font-size: 0.9rem;
  padding-right: 3px;
  position: relative;
  color: var(--text-primary) !important;
  opacity: 0.5;
  top: 0;
  margin-bottom: 0;
}

/* ── BUTTONS ────────────────────────────────────── */
.btn-soft-primary {
  color: var(--accent-gold);
}

.btn-soft-secondary {
  color: #74788d;
  background-color: rgba(116, 120, 141, 0.1);
  border-color: transparent;
}

.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
  color: var(--bs-btn-active-color);
  border-color: transparent;
}

.btn-crypto {
  margin: 0 0 0.75rem 0;
  padding: 0.75rem;
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-primary);
  cursor: pointer !important;
  font-size: 1rem;
  opacity: 0.45;
}

.btn-crypto:hover {
  opacity: 0.85;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none !important;
}

.btn-crypto.active {
  opacity: 1;
  color: var(--text-primary);
  font-weight: bold;
  background: var(--bg-active);
}

.btn-crypto .badge {
  margin-left: 10px;
  opacity: 0.7;
}

.btn-crypto i.cryptoicon {
  position: relative;
  top: 4px;
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* ── INVESTMENT CARD ───────────────────────────── */
.investment-card {
  background: var(--bg-active);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

.inv-top {
  padding: 22px 24px 16px;
}

.sub-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-label);
  text-transform: uppercase;
}

.inv-amount {
  margin-bottom: 6px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1;
}

.inv-btc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.inv-btc .btc-val {
  color: var(--text-primary);
  font-weight: 600;
}

.inv-btc .btc-up {
  margin: 0 4px;
  color: var(--success);
}

/* time filters */
.time-filters {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.time-btn {
  padding: 4px 8px;
  background: none;
  border: none;
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.time-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.time-btn.active {
  color: var(--time-active);
}

.time-btn.gear {
  padding: 4px 7px;
  font-size: 0.9rem;
}

.sparkline-wrap {
  flex-shrink: 0;
}

.stat-label {
  margin-bottom: 6px !important;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-label);
  text-transform: uppercase;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── MINING VERLAUF ────────────────────────────── */
.verlauf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.verlauf-tabs {
  display: flex;
  gap: 0;
}

.vtab {
  margin-left: 20px;
  padding: 6px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.15s;
}

.vtab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

/* DataTables wrapper */
#verlaufTable_wrapper .dataTables_length,
#verlaufTable_wrapper .dataTables_filter,
#verlaufTable_wrapper .dataTables_info,
#verlaufTable_wrapper .dataTables_paginate {
  color: var(--text-muted);
  font-size: 0.75rem;
}

#verlaufTable_wrapper .dataTables_filter input {
  margin-left: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
}

#verlaufTable_wrapper .dataTables_length select {
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
}

#verlaufTable_wrapper .dataTables_paginate .paginate_button {
  padding: 4px 10px !important;
  background: none !important;
  border: none !important;
  border-radius: 6px !important;
  color: var(--text-muted) !important;
}

#verlaufTable_wrapper .dataTables_paginate .paginate_button.current,
#verlaufTable_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border: none !important;
  color: var(--text-primary) !important;
}

#verlaufTable_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.3 !important;
}

#verlaufTable_filter {
  display: none !important;
}

/* Table */
#verlaufTable {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 4px !important;
}

#verlaufTable thead {
  display: none;
}

#verlaufTable tbody tr {
  border-radius: 8px;
  cursor: default;
  transition: background 0.15s;
}

#verlaufTable tbody tr td:first-child {
  border-radius: 8px 0 0 8px;
}

#verlaufTable tbody tr td:last-child {
  border-radius: 0 8px 8px 0;
}

#verlaufTable tbody tr:hover td {
  background: rgba(255, 255, 255, 0.05) !important;
}

#verlaufTable tbody td {
  padding: 12px;
  vertical-align: middle;
  border: none;
  border-top: none !important;
  background-color: transparent !important;
  color: var(--text-primary);
  min-width: 75px;
}

/* DataTables Bootstrap 5 overrides */
table.dataTable tbody tr,
table.dataTable tbody tr.odd,
table.dataTable tbody tr.even,
table.dataTable.stripe tbody tr.odd,
table.dataTable.stripe tbody tr.even,
table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr.odd,
table.dataTable.display tbody tr.even {
  background-color: transparent !important;
}

table.dataTable tbody tr.odd > td,
table.dataTable tbody tr.even > td,
table.dataTable.stripe tbody tr.odd > td,
table.dataTable.stripe tbody tr.even > td,
table.dataTable.hover tbody tr:hover > td,
table.dataTable.display tbody tr.odd > td,
table.dataTable.display tbody tr.even > td {
  background-color: transparent !important;
}

.row-date {
  margin-bottom: 2px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.row-day {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.row-event-btn {
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

td .sub,
td .add {
  font-size: 0.88rem !important;
  font-weight: bold;
  padding: 19px 0 0 0 !important;
  position: relative;
  top: 10px;
}

.add {
  color: var(--success) !important;
}

.sub {
  color: var(--error) !important;
}

.col-label {
  margin-bottom: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-label);
}

.col-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Loading spinner */
.verlauf-loading {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── OFFCANVAS EINSTELLUNGEN ────────────────────── */
.offcanvas {
  width: 364px !important;
  max-width: 90% !important;
  background-color: var(--primary-blue) !important;
  border-left: none !important;
}

.offcanvas-header {
  color: var(--success);
}

.offcanvas-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

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

.settings-section-title {
  margin: 2.5rem 0 1rem !important;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-gold-light);
  text-transform: uppercase;
  border-left: 7px solid;
  padding-left: 11px;
}

.settings-divider {
  margin: 1rem 0;
}

.settings-link {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  margin-top: 2rem;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: none !important;
}


/* ── CARDS / BOOTSTRAP OVERRIDES ───────────────── */
.card {
  margin-bottom: 1.5rem;
  background: transparent;
  border: none !important;
  border-radius: 0;
}

.card-header {
  background-color: transparent;
  border-bottom: none !important;
}

.card-header-tabs .nav-link.active {
  background-color: transparent;
  border-bottom-color: transparent;
}

.table > :not(caption) > * > * {
  background-color: transparent;
  border-bottom: none;
}

.table tr td div p.text-muted {
  opacity: 0.5;
}

.table tr:hover td div p.text-muted {
  opacity: 1;
}

.table-crypto tr:hover {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px !important;
  transition: background-color 0.2s ease;
}

.nav-tabs-custom .nav-item .nav-link {
  color: rgba(255, 255, 255, 0.2);
}

.nav-tabs-custom .nav-item .nav-link.active {
  color: rgba(255, 255, 255, 0.5);
}

.nav-tabs-custom .nav-item .nav-link::after {
  background: rgba(255, 255, 255, 0.5);
}

.box-highlight {
  padding: 1.2rem 1rem 0rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.box-highlight-transparent {
  padding: 1.2rem 1rem 0rem;
  border-radius: 10px;
  background: transparent;
}

/* ── RANGE SLIDER ───────────────────────────────── */
.form-range::-webkit-slider-thumb {
  background: var(--accent-blue);
}

.form-range::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.12);
}

/* ── INPUT SPINNER ENTFERNEN ───────────────────── */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button,
.license-pocket input[type="number"]::-webkit-inner-spin-button,
.license-pocket input[type="number"]::-webkit-outer-spin-button,
.acc-card-range input[type="number"]::-webkit-inner-spin-button,
.acc-card-range input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
  outline: none;
}

input[type="number"]::-webkit-textfield-decoration-container {
}

input[type="number"],
.license-pocket input[type="number"] {
  -moz-appearance: textfield;
  outline: none;
}

/* ── SCROLLBAR ──────────────────────────────────── */
*::-webkit-scrollbar {
  -webkit-appearance: none !important;
  width: 5px !important;
  height: 5px !important;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 10px !important;
}

*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  -webkit-border-radius: 10px !important;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue) !important;
}

*::-webkit-scrollbar-corner {
  background: transparent !important;
}

.dataTables_scrollBody {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.03);
}

.dataTables_scrollBody::-webkit-scrollbar {
  width: 5px;
}

.dataTables_scrollBody::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0);
  border-radius: 10px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb {
  background: rgba(17, 22, 57, 1);
  border-radius: 10px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* ── HR / TRENNER ───────────────────────────────── */
hr,
.trenner-crypto {
  border-style: dashed;
  border-color: var(--accent-gold-light);
}

/* ── FOOTER ─────────────────────────────────────── */
.footer {
  position: relative;
  right: 0;
  bottom: 0;
  left: 0;
  height: 60px;
  padding: 20px calc(1.5rem / 2);
  color: var(--bs-footer-color);
  background-color: transparent;
  border-top: none !important;
}

/* ── LOADING BAR ────────────────────────────────── */
.pace-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 1px;
  z-index: 9999;
  background: transparent;
  transform: translate3d(-100%, 0, 0);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.pace-progress-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-blue) 20%,
    var(--success-dark) 40%,
    var(--accent-blue) 60%,
    var(--accent-gold) 80%,
    var(--error) 100%
  );
  background-size: 200% 100%;
  animation: loading-gradient 1.5s linear infinite;
}

.pace-progress.loading {
  transform: translate3d(-1%, 0, 0);
}

.pace-progress.complete {
  transform: translate3d(0, 0, 0);
  transition: transform 0.2s ease;
}

.pace-progress.complete .pace-progress-inner {
  animation: none;
  background: var(--success);
}

@keyframes loading-gradient {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* ── SUBACCOUNTS ────────────────────────────────── */
.vertical-buttons {
  display: flex;
  flex-direction: column;
  width: 16px;
  margin-right: 2px;
  background: none;
}

.btn-quantity-vertical {
  background: transparent;
  border: none;
  color: var(--bs-light);
  cursor: pointer;
  line-height: 1;
  transition: all 0.1s ease;
}

.unteraccount-list {
	margin-top: 1rem;
}

.license-pocket .text-info, .license-pocket .text-success, .license-pocket .text-secondary, .license-pocket span, .license-pocket i {
  color: var(--text-primary) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  margin-bottom: 0.5rem !important;
  text-transform: uppercase !important;
  border-bottom: none !important;
}

.license-pocket {
  transition: all 0.1s ease;
  margin: 1rem 0 1.5rem !important;
  padding: 0.25rem !important;
}

.license-pocket div {
  margin-bottom: 0.25rem !important;
}

.license-pocket:hover {
  background: rgba(255, 255, 255, 0.1);
}

#debug {
	display: none;
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 991px) {
  .app-header h1 {
    font-size: 1.2rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .main-wrap {
    padding: 16px;
  }

  .inv-amount {
    font-size: 1.5rem;
  }

  .app-header h1 {
    font-size: 1rem;
  }
}

@media (max-width: 575px) {
  .main-wrap {
    padding: 0px;
  }
  
  .app-header h1 {
    font-size: 1rem;
  }

  .hamburger-menu i {
    font-size: 1.7rem;
  }
}

@media (max-width: 470px) {
  .section-label, .inv-label {
    margin: 0 0 7px 0;
    font-size: 1rem;;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .card-body > div.mb-4 {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 380px) {
  .stat-label {
	margin-bottom: 3px !important;
    font-size: 0.6rem;
	letter-spacing: 0;
  }
  
  .stat-value {
	letter-spacing: 0;
    font-size: 0.9rem;
  }
  
  #UnteraccountInfo {
    font-size: 0.6rem;
  }
  
  .box-highlight {
    padding: 1rem;
  }
}