@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* ================================================
   Bootstrap variable overrides + font
================================================ */
:root {
  --bs-body-font-family:
    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --bs-body-font-family-medium:
    "gc_north_sansmedium", Inter, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --bs-body-font-family-bold:
    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --t-body-text: #1f1f1f;
  --t-panel-logo-bg: url("../../img/new-version-img/logo-symbol-bg.avif");

  --t-panel-bg-color: #1a0e06;
  --t-panel-img: url("../../img/new-version-img/panel-overlay.avif");

  /* §0  CSS VARIABLES */

  --dashboard-bg: #f5f3f1;
  --sidebar-bg: #261609;
  --card-bg: #ffffff;
  --card-radius: 24px;
  --card-radius-small: 16px;
  --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);

  --orange: #f5662a;
  --blue: #2d6bff;
  --yellow: #dccf72;
  --green: #4cd964;
  --muted: #8a8a8a;

  --sidebar-width: 280px;
  --header-height: 72px;

  --font-reg: "Inter", system-ui, sans-serif;
  --font-med: "Inter", system-ui, sans-serif;
  --font-bold: "Inter", system-ui, sans-serif;

  --espresso: #261609;
  --grey-700: #555555;
  --grey-600: #656565;
  --grey-400: #92979d;
  --grey-300: #b1b1b1;
  --grey-200: #e6e6e6;
  --grey-100: #ebedef;
  --grey-20: #f5f5f1;
  --grey-10: #f9f9f7;
  --white: #fff;
  --red-50: #ffeced;
}

body {
  background: linear-gradient(90deg, #faf5f0 0%, #d6dadd 100%);
  color: var(--t-body-text);
  font-family: var(--bs-body-font-family);
  font-size: 0.875rem;
  font-weight: normal;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.login-page-body {
  background: var(--t-body-text) url("../../img/new-version-img/login-bg.avif")
    no-repeat center center;
  background-size: cover;
}

.signup-page-body {
  background: var(--t-body-text) url("../../img/new-version-img/main-bg.avif")
    no-repeat center center;
  background-size: cover;
  position: relative;
}
.signup-page-body:after {
  content: "";
  position: absolute;
  background: var(--t-panel-logo-bg) no-repeat right bottom;
  background-size: contain;
  isolation: isolate;
  pointer-events: none;
  right: 0;
  bottom: 0;
  width: 50%;
  aspect-ratio: 1030/830;
}

[dir="rtl"] .signup-page-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../img/new-version-img/main-bg.avif") no-repeat center
    center;
  background-size: cover;
  z-index: -1;
  transform: scaleX(-1);
  pointer-events: none;
  isolation: isolate;
}

strong {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 700;
}

/* ================================================
   DARK THEME  (node 1055-144)
================================================ */
.theme-dark {
  --t-btn: #cc5526;
  --t-text: #ffffff;
  --t-muted: rgba(255, 255, 255, 0.4);
  --t-label: rgba(255, 255, 255, 0.4);
  --t-input-txt: #ececec;
  --t-input-bdr: #cecece;
  --t-input-bg: rgba(255, 255, 255, 0.2);
  --t-logo-op: 0.2;
}
.theme-dark {
  background-color: #261609;
}

/* Page bg: mesh gradient overlay */
.theme-dark .page-bg {
  background: #041715;
  background-image: url("../../img/new-version-img/panel-overlay.avif");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

/* Theme green variant */
.theme-green {
  --t-btn: #082c28;
  --t-text: #ffffff;
  --t-muted: rgba(255, 255, 255, 0.4);
  --t-label: rgba(255, 255, 255, 0.4);
  --t-input-txt: #ececec;
  --t-input-bdr: #cecece;
  --t-input-bg: rgba(255, 255, 255, 0.2);
  --t-logo-op: 0.2;
  background: linear-gradient(
    45deg,
    rgba(44, 98, 49, 1) 0%,
    rgba(73, 191, 177, 1) 25%,
    rgba(4, 23, 21, 1) 100%
  );

  --t-panel-bg-color: #041715;
  --t-panel-img: url("../../img/new-version-img/panel-overlay-green.avif");
}

.theme-green-light {
  --t-btn: #017661;
  --t-text: #000000;
  --t-muted: rgba(0, 0, 0, 0.4);
  --t-label: rgba(0, 0, 0, 0.4);
  --t-input-txt: #92979d;
  --t-input-bdr: #cecece;
  --t-input-bg: rgba(255, 255, 255, 0.2);
  --t-logo-op: 0.2;
  /* --t-panel-ov: url("../../img/new-version-img/panel-overlay.avif"); */
  /* --t-panel-ov: url("../../img/new-version-img/panel-overlay.avif"); */
  --t-panel-img: url("../../img/new-version-img/panel-overlay-green.avif");
}

.theme-green .page-bg {
  background: #041715;
  background-image: url("../../img/new-version-img/panel-overlay.avif");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

/* ── Full-page decorative layer ── */
.page-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-mesh-bg {
  position: absolute;
  left: -271px;
  top: -334px;
  width: 2579px;
  height: 1451px;
  object-fit: cover;
  opacity: 0.9;
}

.page-ellipse-glow {
  position: absolute;
  left: calc(25% + 37px);
  top: -1911px;
  width: 1363px;
  height: 1363px;
}

/* ================================================
   LIGHT THEME  (node 1055-777)
================================================ */
.theme-light {
  --t-btn: #cc5526;

  --t-text: #000000;
  --t-muted: rgba(0, 0, 0, 0.4);
  --t-label: rgba(0, 0, 0, 0.4);
  --t-input-txt: #92979d;
  --t-input-bdr: #cecece;
  --t-input-bg: rgba(255, 255, 255, 0.2);
  --t-panel-ov: url("../../img/new-version-img/panel-overlay.avif");

  --t-logo-op: 0.2;
}
.theme-light {
  background: linear-gradient(90deg, #d6dadd 0%, #faf5f0 100%);
}

/* ================================================
   LAYOUT HELPERS  —  no Bootstrap equivalent
================================================ */
.panel-cards-inner {
  z-index: 10;
  max-width: 540px;
}
.form-inner {
  width: 100%;
  max-width: 680px;
}

/* ================================================
   LEFT PANEL CARD  —  background via pseudo-elements
   (Bootstrap has no CSS mask / background-image util)
================================================ */

.login-panel-card {
  background-color: var(--t-panel-bg-color);
  background-image: var(--t-panel-img);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

.theme-light .login-panel-card::after {
  content: "";
  position: absolute;
  inset: 20% 0 0 0;
  background: var(--t-panel-logo-bg) no-repeat bottom center;
  background-size: cover;
  isolation: isolate;
  pointer-events: none;
}

/* Geometric diamond shapes inside the left panel */
.panel-geo-shapes {
  position: absolute;
  left: -63px;
  top: 309px;
  width: 1032px;
  height: 819px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

/* ================================================
   FEATURE CARDS
================================================ */
.feature-card {
  background-color: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  min-height: 105px;
  padding: 0.75rem;
}

/* Icon slot */
.feature-icon {
  flex: 0 0 91px;
  min-width: 91px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem;
  padding-left: 0;
}

/* Card text */
.feature-text {
  font-size: 1.375rem;
  color: #656565;
  line-height: 1.2;
}
.feature-text strong {
  color: var(--t-body-text);
}
[dir="rtl"] .pe-4 {
  padding-right: 1.5rem !important;
  padding-left: 0 !important;
}

/* ================================================
   BRAND ROW
================================================ */
.brand-row {
  gap: 18px;
  padding: 4.65px 0;
}

.brand-icon {
  width: 25px;
  height: 20px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.37rem;
  line-height: normal;
  color: rgba(238, 247, 255, 0.4);
  white-space: nowrap;
}

.theme-light .brand-name {
  color: var(--t-body-text);
  opacity: 0.8;
}
.theme-light .brand-icon {
  filter: brightness(0) invert(0);
  opacity: 0.8;
}

/* ================================================
   HEADING
================================================ */
.login-heading {
  font-size: 4.5rem;
  line-height: 1.15 !important;
  color: var(--t-text);
  margin-bottom: 0.5rem !important;
}

/* ================================================
   SUBTITLE / FORM TEXT COLOURS
================================================ */
.login-subtitle {
  color: var(--t-text);
}
.reg-muted {
  color: var(--t-muted);
}
.reg-link {
  color: var(--t-text) !important;
  text-decoration: none;
}
.reg-link:hover {
  text-decoration: underline;
}

/* ================================================
   FORM
================================================ */
.login-form {
  max-width: 380px;
}
.login-form .form-label {
  color: var(--t-label);
  font-size: clamp(0.875rem, 1.25vh, 0.875rem);
  margin-bottom: 0.375rem;
}

.login-form .form-control {
  height: clamp(36px, 4.5vh, 44px);
  font-size: clamp(0.75rem, 1.25vh, 0.875rem);
  color: var(--t-input-txt);
  background-color: var(--t-input-bg);
  border-color: var(--t-input-bdr);
  border-radius: 0.75rem !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.login-form .form-control::placeholder {
  color: var(--t-input-txt);
  opacity: 1;
}
.login-form .form-control:focus {
  background-color: var(--t-input-bg);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--t-input-txt);
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 0 0 3px rgba(255, 255, 255, 0.12);
}

/* Sign In button */
.btn-signin,
.btn-primary {
  background-color: var(--t-btn) !important;
  color: #ffffff !important;
  border: none !important;
  height: clamp(36px, 4.5vh, 44px);
  font-size: clamp(0.875rem, 1.75vh, 1.125rem) !important;
  border-radius: 0.75rem !important;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}
.btn-signin:hover,
.btn-primary:hover {
  filter: brightness(1.15);
}
.btn-signin:active,
.btn-primary:active {
  transform: scale(0.98);
}
.btn-signin:focus-visible,
.btn-primary:focus-visible {
  outline: 3px solid var(--t-btn);
  outline-offset: 2px;
}

.form-check-input {
  width: 1.5em;
  height: 1.5em;
  margin-top: 0;
  margin-left: 0;
  flex-shrink: 0;
  background-color: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.form-check-input:hover {
  border-color: var(--t-text);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(31, 107, 255, 0.25);
  border-color: var(--blue-accent);
}

.form-check-input:checked {
  background-color: var(--blue-accent);
  border-color: var(--blue-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.2l3.2 3.2L13 4.6' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 65% 65%;
}

/* Radio variant — Bootstrap already sets border-radius:50% via
   .form-check-input[type=radio]; we only theme the colors/size here. */
.form-check-input[type="radio"] {
  border-radius: 50%;
}

.form-check-input[type="radio"]:checked {
  background-color: var(--blue-accent);
  border-color: var(--blue-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3.5' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: 55% 55%;
}

.btn-secondary {
  background-color: var(--t-btn-secondary) !important;
  color: #ffffff !important;
  border: none !important;
  height: clamp(36px, 4.5vh, 44px);
  font-size: clamp(0.875rem, 1.75vh, 1.125rem) !important;
  border-radius: 0.75rem !important;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.btn-success {
  background-color: var(--t-btn-success) !important;
  color: #ffffff !important;
  border: none !important;
  height: clamp(36px, 4.5vh, 44px);
  font-size: clamp(0.875rem, 1.75vh, 1.125rem) !important;
  border-radius: 0.75rem !important;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.btn-danger {
  background-color: var(--t-btn-danger) !important;
  color: #ffffff !important;
  border: none !important;
  height: clamp(36px, 4.5vh, 44px);
  font-size: clamp(0.875rem, 1.75vh, 1.125rem) !important;
  border-radius: 0.75rem !important;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.btn-warning {
  background-color: var(--t-btn-warning) !important;
  color: #ffffff !important;
  border: none !important;
  height: clamp(36px, 4.5vh, 44px);
  font-size: clamp(0.875rem, 1.75vh, 1.125rem) !important;
  border-radius: 0.75rem !important;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.panel-col {
  padding: clamp(1rem, 2.5vw, 3rem);
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 991.98px) {
  body,
  .login-page {
    height: auto !important;
    overflow-y: auto !important;
  }

  .form-col {
    min-height: 60vh;
  }
  .login-heading {
    font-size: 4rem;
  }
  .signup-page-body:after {
    width: 85%;
  }
}

@media (max-width: 575.98px) {
  .login-heading {
    font-size: 2rem;
  }
  .feature-icon {
    flex: 0 0 80px;
    min-width: 80;
    padding: 0.5rem;
  }
  .signup-page-body:after {
    width: 100%;
  }
  .brand-row {
    gap: 0.5rem;
  }
  .brand-name {
    font-size: 1rem;
  }
}

/* ================================================
   REDUCED MOTION
================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================
   LOGIN FULLSCREEN
================================================ */

/* Page shell */
.lfs-page {
  height: 100%;
  min-height: 100vh;
}

/* Decorative layer — abs positioned, below content */
.lfs-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Background texture / gradient overlay */
.lfs-bg-rect {
  position: absolute;
  left: -6.88%;
  top: 0;
  width: 114.19%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Main content — vertically centred, offset left */
.lfs-content {
  gap: 3.5rem;
  padding-inline: clamp(1.5rem, 6vw, 4rem);
}

/* Brand block: logo row + heading + subtitle */
.lfs-brand-block {
  gap: 12px;
}

.lfs-logo-row {
  gap: 18px;
  padding: 4.65px 0;
}

.lfs-logo-icon {
  width: 25px;
  height: 20px;
  flex-shrink: 0;
}

.lfs-brand-name {
  font-size: 21.954px;
  line-height: normal;
  color: rgba(238, 247, 255, 0.4);
  white-space: nowrap;
}

.lfs-heading {
  font-size: 86px;
  line-height: 1;
  color: #fff;
  width: 695px;
  font-weight: normal;
}

.lfs-subtitle {
  font-size: 18px;
  line-height: 1.2;
  color: #fff;
}

/* Form width — inputs inherit Bootstrap form-control base */
.lfs-form {
  width: 383px;
}

.lfs-form .form-label {
  font-size: 0.875rem;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0;
}

.lfs-form .form-control {
  height: 44px;
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #cecece;
  border-radius: 0.75rem !important;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: #ececec;
  box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
}

.lfs-form .form-control::placeholder {
  color: #ececec;
  opacity: 1;
}

.lfs-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ececec;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 0 0 3px rgba(255, 255, 255, 0.12);
}

/* Sign In button — orange variant */
.btn-lfs-signin {
  height: 44px;
  background-color: #cc5526;
  color: #fff;
  border: none;
  border-radius: 0.75rem !important;
  font-size: 1.125rem;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.btn-lfs-signin:hover {
  filter: brightness(1.1);
  color: #fff;
}

.btn-lfs-signin:active {
  transform: scale(0.98);
}

.btn-lfs-signin:focus-visible {
  outline: 3px solid #cc5526;
  outline-offset: 2px;
  box-shadow: none;
}

.lfs-register-muted {
  color: rgba(255, 255, 255, 0.4);
}

.lfs-register-link {
  color: #fff;
  text-decoration: none;
}

.lfs-register-link:hover {
  text-decoration: underline;
  color: #fff;
}

@media (max-width: 1199.98px) {
  .lfs-content {
    width: min(675px, calc(100vw - 6rem));
  }

  .lfs-heading {
    font-size: clamp(2.5rem, 6vw, 5.375rem);
    line-height: 1.1;
    width: 100%;
  }

  .lfs-geo {
    left: 50%;
  }
}

@media (max-width: 767.98px) {
  .lfs-page {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .lfs-content {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding-inline: 0;
    gap: 36px;
  }

  .lfs-heading {
    font-size: 2.5rem;
    line-height: 1.15;
    width: 100%;
  }

  .lfs-form {
    width: 100%;
  }

  .lfs-geo {
    display: none;
  }
  .lfs-content {
    gap: 2rem;
  }
}

@media (max-width: 575.98px) {
  .lfs-heading,
  .login-heading {
    font-size: 2rem;
  }
  .lfs-content {
    gap: 1.5rem;
  }
}

/* ================================================
   SIGN UP
================================================ */

/* Content block — wider than fullscreen, centred ~34% from left */
.su-content {
  position: absolute;
  left: calc(34.38% - 26px);
  top: 50%;
  transform: translate(-50%, -50%);
  width: 960px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Heading width inside the wider content block */
.su-content .lfs-heading {
  width: 710px;
}

/* 2-column form grid */
.su-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.su-form-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Glass inputs — same look as lfs-form, scoped to signup */
.su-form .form-label {
  font-size: 0.875rem;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.5rem;
  font-family: var(--bs-body-font-family-medium);
}

.su-form .form-control,
.su-form .form-select,
.form-control {
  height: 44px;
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #cecece;
  border-radius: 0.75rem !important;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: #ececec;
  box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
}

.su-form .form-control::placeholder,
.form-control::placeholder {
  color: #ececec;
  opacity: 1;
}

.form-control:focus,
.form-control:active,
.form-control:focus-visible,
.form-select:focus,
.form-select:focus-visible,
.form-select:active {
  background-color: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ececec;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 0 0 3px rgba(255, 255, 255, 0.12);
}
.form-select:focus {
  background-color: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ececec;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 0 0 3px rgba(255, 255, 255, 0.12);
}

/* Country select — custom chevron replacing Bootstrap's arrow */
.su-form .form-select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23ececec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  cursor: pointer;
}

.su-form .form-select option {
  background-color: #261609;
  color: #ececec;
}

/* Phone: narrow dial-code prefix + number input */
.su-phone-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.su-phone-code {
  width: 56px;
  flex-shrink: 0;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid #cecece;
  border-radius: 0.75rem;
  padding: 10px 6px;
  font-size: 0.875rem;
  color: #ececec;
  text-align: center;
  box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.su-phone-code::placeholder {
  color: #ececec;
  opacity: 1;
}

.su-phone-code:focus {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 0 0 3px rgba(255, 255, 255, 0.12);
}

/* ── Responsive ── */
@media (max-width: 1199.98px) {
  .su-content {
    left: 3rem;
    transform: translateY(-50%);
    width: min(960px, calc(100vw - 6rem));
  }

  .su-content .lfs-heading {
    width: 100%;
    font-size: clamp(2.5rem, 6vw, 5.375rem);
    line-height: 1.1;
  }

  .lfs-geo {
    left: 50%;
  }
}

@media (max-width: 767.98px) {
  .su-content {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    gap: 36px;
  }

  .su-content .lfs-heading {
    font-size: 2.5rem;
    line-height: 1.15;
    width: 100%;
  }

  .su-form-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Flatten columns so fields reorder in a single flow */
  .su-form-col {
    display: contents;
  }

  .su-form-col > div:has(#name) {
    order: 1;
  }
  .su-form-col > div:has(#email) {
    order: 2;
  }
  .su-form-col > div:has(#password) {
    order: 3;
  }
  .su-form-col > div:has(#confirm-password) {
    order: 4;
  }
  .su-form-col > div:has(#country) {
    order: 5;
  }
  .su-form-col > div:has(#phone) {
    order: 6;
  }
}

@media (max-width: 575.98px) {
  .su-content .lfs-heading {
    font-size: 2rem;
  }
}

/* ================================================
   DASHBOARD
================================================ */

/* 01  LAYOUT */
.main-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* 02  SIDEBAR */
.main-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem 2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  transition: width 0.25s ease;
}

.main-sidebar::-webkit-scrollbar {
  width: 4px;
}
.main-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.main-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.sidebar-logo {
  padding: 0 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.sidebar-logo .brand-logo {
  gap: 0.75rem;
  text-decoration: none;
}
.sidebar-logo .brand-name {
  color: var(--white);
  font-size: 1rem;
}

/* Sidebar collapse / mobile-close toggle */
.main-sidebar.collapsed .sidebar-logo .brand-logo {
  padding: 0.5rem 0 1rem;
}

.main-sidebar.collapsed .sidebar-menu > li {
  padding-left: 6px;
  padding-right: 6px;
}

.sidebar-toggle {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  border: 0;
  transition: background 0.15s ease;
}
.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}
.sidebar-toggle img {
  width: 20px;
  height: 20px;
  display: block;
  transition: transform 0.25s ease;
}

/* Collapsed (desktop icon-only) state */
.main-sidebar.collapsed {
  width: 84px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.main-sidebar.collapsed .sidebar-toggle img {
  transform: rotate(180deg);
}
.main-sidebar.collapsed .sidebar-logo {
  flex-direction: column;
  gap: 0.85rem;
  padding-left: 0;
  padding-right: 0;
}
.main-sidebar.collapsed .brand-logo {
  gap: 0;
}
.main-sidebar.collapsed .brand-name,
.main-sidebar.collapsed .sidebar-group-label,
.main-sidebar.collapsed .sidebar-search,
.main-sidebar.collapsed .sidebar-item-chevron,
.main-sidebar.collapsed .sidebar-submenu,
.main-sidebar.collapsed .sidebar-has-sub .sidebar-item-chevron,
.main-sidebar.collapsed .sidebar-has-sub.open > .sidebar-submenu {
  display: none;
}
.main-sidebar.collapsed .sidebar-item {
  font-size: 0;
  gap: 0;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}
.main-sidebar.collapsed .sidebar-item .sidebar-item-icon {
  font-size: 0.9375rem;
}

.tippy-box {
  padding: 4px 8px;
  border-radius: 6px;
  background: #000;
}
.tippy-arrow {
  color: #000;
}

.tippy-box[data-animation="shift-away-subtle"][data-state="hidden"] {
  opacity: 0;
}
.tippy-box[data-animation="shift-away-subtle"][data-state="hidden"][data-placement^="top"] {
  transform: translateY(5px);
}
.tippy-box[data-animation="shift-away-subtle"][data-state="hidden"][data-placement^="bottom"] {
  transform: translateY(-5px);
}
.tippy-box[data-animation="shift-away-subtle"][data-state="hidden"][data-placement^="left"] {
  transform: translateX(5px);
}
.tippy-box[data-animation="shift-away-subtle"][data-state="hidden"][data-placement^="right"] {
  transform: translateX(-5px);
}

.sidebar-logo-img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1.75rem;
}

.sidebar-search-icon {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.deposit-search-icon {
  color: #b1b1b1;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.sidebar-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-reg);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

.sidebar-search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.sidebar-group:not(:last-child) {
  padding-bottom: 1.3rem;
  margin-bottom: 1.3rem;
  border-bottom: solid 1px rgba(255, 255, 255, 0.1);
}

.sidebar-group-label {
  display: block;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.6563rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.28);
  padding: 0 0.625rem;
  margin-bottom: 0.375rem;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.625rem;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.875rem;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  cursor: pointer;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
}

.sidebar-item.active {
  color: #ffffff;
}

.sidebar-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9375rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.sidebar-item-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.sidebar-item:hover .sidebar-item-icon {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

.sidebar-item.active .sidebar-item-icon {
  background: var(--orange);
  color: #ffffff;
}

.sidebar-item-badge {
  margin-left: auto;
  background: var(--orange);
  color: #fff;
  font-size: 0.5625rem;
  font-family: var(--font-bold);
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
}

.sidebar-item-chevron {
  font-size: 0.6875rem;
  opacity: 0.35;
  margin-left: auto;
  display: none;
}

.offcanvas-header .sidebar-logo {
  padding: 0;
}

/* §3  MAIN CONTENT */
.main-box {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background-color: var(--dashboard-bg);
}
.main-box .ib-page-title {
  font-family: var(--font-reg);
  font-weight: normal;
}
.mr-main-box {
  background: linear-gradient(to right, #faf5f0, #d6dadd);
}

/* §4  TOP HEADER */
.main-header {
  /* position: sticky; */
  top: 0;
  z-index: 100;
  padding: 0.875rem 1.5rem 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}

.main-header .brand-name {
  color: var(--t-body-text);
  font-size: 1rem;
  line-height: 1.2;
}

.hamburger {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--t-body-text);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #fff;
  padding: 0;
  transition: background 0.15s ease;
}

.hamburger:hover,
.hamburger:active,
.hamburger:focus-visible {
  background: #000 !important;
  color: #fff !important;
}

.welcome {
  font-size: 0.6875rem;
  color: var(--muted);
  line-height: 1.2;
}

.username {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 1rem;
  color: var(--t-body-text);
  line-height: 1.2;
}

.currency-wrap {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--dashboard-bg);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 10px;
  padding: 0.3rem 0.5rem;
}

.currency-flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.currency-select {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--t-body-text);
  cursor: pointer;
  padding: 0 1.25rem 0 0;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%238A8A8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: #ede9e5;
  color: var(--t-body-text);
}

.notif-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  border: 2px solid #fff;
  position: absolute;
  top: 5px;
  right: 5px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-name {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--t-body-text);
  line-height: 1.2;
  white-space: nowrap;
}

.user-role {
  font-size: 0.6875rem;
  color: var(--muted);
  line-height: 1.2;
}

/* 5  CARD BASE */
.card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 1.375rem 1.5rem;
  box-shadow: var(--card-shadow);
}

.card-title {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--t-body-text);
  margin: 0;
}

.view-all {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--orange);
  text-decoration: none;
  white-space: nowrap;
}

.view-all:hover {
  text-decoration: underline;
  color: var(--orange);
}

.btn-new-account {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.35rem 0.875rem;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  transition: filter 0.15s ease;
  cursor: pointer;
}

.btn-new-account:hover {
  filter: brightness(1.1);
  color: #fff;
}

/* §6  ACCOUNT SUMMARY */
.acc-tabs {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.acc-tab {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.09);
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.8125rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.acc-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.acc-tab:hover:not(.active) {
  background: rgba(245, 102, 42, 0.08);
  border-color: rgba(245, 102, 42, 0.3);
  color: var(--orange);
}

.donut-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.donut-value {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--t-body-text);
  line-height: 1.2;
}

.donut-label {
  font-size: 0.625rem;
  color: var(--muted);
  white-space: nowrap;
}

.acc-stats {
  display: flex;
  flex-direction: column;
  gap: 0.6875rem;
  flex: 1;
  min-width: 120px;
}

.acc-stat-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.acc-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.acc-stat-label {
  font-size: 0.6563rem;
  color: var(--muted);
  line-height: 1.2;
}

.acc-stat-value {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--t-body-text);
  line-height: 1.2;
}

/* Account: mini stat tiles (Open Accounts / Demo Accounts) */
.acc-mini-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  margin-top: 1rem;
}

.acc-mini-tile {
  background: var(--dashboard-bg);
  border-radius: 16px;
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.acc-mini-tile-label {
  font-size: 0.6563rem;
  color: var(--muted);
  font-family: var(--font-med);
  font-weight: 500;
}

.acc-mini-tile-value {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 1.625rem;
  color: var(--t-body-text);
  line-height: 1.1;
}

.acc-mini-tile-badge {
  display: inline-block;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.5625rem;
  padding: 0.1rem 0.4rem;
  border-radius: 20px;
  margin-top: 0.2rem;
  align-self: flex-start;
}

/* Account: volume row */
.acc-volume-row {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

.acc-volume-item {
}

.acc-volume-label {
  font-size: 0.6563rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.acc-volume-value {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 1rem;
  color: var(--t-body-text);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Activity section */
.acc-activity-title {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--t-body-text);
  margin: 0 0 0.75rem;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.activity-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.045);
  position: relative;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3px;
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-line {
  width: 1px;
  flex: 1;
  background: rgba(0, 0, 0, 0.08);
  margin-top: 4px;
}

.activity-item:last-child .activity-line {
  display: none;
}

.activity-text {
  font-size: 1rem;
  color: #333;
  line-height: 1.35;
  flex: 1;
}

.activity-text strong {
  color: var(--t-body-text);
  font-family: var(--font-med);
  font-weight: 500;
  font-weight: normal;
}

.activity-time {
  font-size: 0.625rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 2px;
}

/* §7  DEPOSIT & WITHDRAWAL */
.circ-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.circ-chart-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}

.circ-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.circ-value {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--t-body-text);
  line-height: 1.2;
}

.circ-label {
  font-size: 0.5625rem;
  color: var(--muted);
  white-space: nowrap;
}

/* §8  WALLET SUMMARY */
.wallet-card {
  background: linear-gradient(145deg, #3a1e0a 0%, #261609 60%, #1c0e04 100%);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.wallet-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-med);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.wallet-amount {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 1.875rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0;
}

.wallet-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-wallet-deposit {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.55rem 1rem;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  transition: filter 0.15s ease;
  cursor: pointer;
}

.btn-wallet-deposit:hover {
  filter: brightness(1.1);
  color: #fff;
}

.wallet-row {
  display: flex;
  gap: 0.5rem;
}

.btn-wallet-ghost {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.45rem 0.5rem;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: background 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-wallet-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* §9  TRADE BEHAVIOR */
.trade-chart-wrap {
  position: relative;
  height: 200px;
}

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

/* §10  STAT CARDS */
.stat-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 1.125rem 1.25rem;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(245, 102, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1.125rem;
  margin-bottom: 0.875rem;
  flex-shrink: 0;
}

.stat-value {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--t-body-text);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.625rem;
}

.stat-badge {
  display: inline-block;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.6563rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  align-self: flex-start;
}

.badge-positive {
  background: rgba(76, 217, 100, 0.14);
  color: #1f9438;
}

.badge-negative {
  background: rgba(255, 59, 48, 0.12);
  color: #c0392b;
}

/* §11  PROMO BANNER */
.promo-card {
  background: linear-gradient(135deg, #261609 0%, #3d1f09 45%, #4a2810 100%);
  border-radius: var(--card-radius);
  padding: 1.5rem 2rem;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(245, 102, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.promo-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 102, 42, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.promo-title {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.promo-sub {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.48);
  margin: 0;
}

.btn-promo {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.55rem 1.5rem;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
  transition: filter 0.15s ease;
  cursor: pointer;
}

.btn-promo:hover {
  filter: brightness(1.1);
  color: #fff;
}

/* §12  TABLES */
.table {
  font-size: 0.8125rem;
  margin: 0;
  width: 100%;
}

.table thead th {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.6563rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding: 0.5rem 0.625rem;
  white-space: nowrap;
  font-weight: normal;
}

.table tbody td {
  padding: 0.6875rem 0.625rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  color: #333;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover td {
  background: rgba(245, 102, 42, 0.03);
}

.txn-name {
  display: block;
  font-family: var(--font-med);
  font-weight: 500;
  color: var(--t-body-text);
  font-size: 0.8125rem;
  line-height: 1.2;
}

.txn-date {
  display: block;
  font-size: 0.625rem;
  color: var(--muted);
}

.txn-method {
  font-size: 0.75rem;
  color: var(--muted);
}

.txn-amount {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
}

.status-badge {
  display: inline-block;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.625rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-approved {
  background: rgba(76, 217, 100, 0.14);
  color: #1f9438;
}

.badge-pending {
  background: rgba(220, 207, 114, 0.22);
  color: #7d7000;
}

.pos-account {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.6875rem;
  color: var(--muted);
}
.pos-symbol {
  font-family: var(--font-med);
  font-weight: 500;
  color: var(--t-body-text);
  font-size: 0.8125rem;
}
.pos-date {
  font-size: 0.6875rem;
  color: var(--muted);
  white-space: nowrap;
}
.pos-pnl-pos {
  color: #1f9438;
  font-family: var(--font-med);
  font-weight: 500;
  white-space: nowrap;
}
.pos-pnl-neg {
  color: #c0392b;
  font-family: var(--font-med);
  font-weight: 500;
  white-space: nowrap;
}

.type-badge {
  display: inline-block;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.625rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.badge-buy {
  background: rgba(76, 217, 100, 0.16);
  color: #1a8c32;
}
.badge-sell {
  background: rgba(255, 59, 48, 0.13);
  color: #c0392b;
}

/* §13  MOBILE OFFCANVAS */
.offcanvas {
  background-color: var(--sidebar-bg) !important;
  width: min(288px, 88vw) !important;
  padding: 0;
}

.offcanvas .offcanvas-body {
  padding: 0 0 2rem;
  overflow-y: auto;
}

/* §14  RESPONSIVE */
@media (max-width: 1199.98px) {
  .main-sidebar {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .main-header {
    padding: 0.75rem 1rem;
  }
  .wallet-amount {
    font-size: 1.5rem;
  }
  .promo-card {
    padding: 1.25rem 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .acc-mini-tiles {
    grid-template-columns: 1fr 1fr;
  }
  .card,
  .stat-card {
    padding: 1rem 1rem;
  }
  .donut-wrap {
    width: 140px;
    height: 140px;
  }
  .trade-chart-wrap {
    height: 170px;
  }
}

@media (max-width: 575.98px) {
  .promo-title {
    font-size: 0.9375rem;
  }
  .username {
    font-size: 0.875rem;
  }
  .acc-mini-tiles {
    grid-template-columns: 1fr 1fr;
  }
  .card {
    border-radius: var(--card-radius-small);
  }
}

/* ================================================
   DASHBOARD EMPTY STATE
================================================ */

/* §ES-1  ONBOARDING STEPPER */
.es-setup-banner {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f1f1;
  border-radius: 16px;
  padding: 1.25rem 1.5rem 1.5rem;
}

.es-setup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.es-setup-title {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 1.25rem;
  color: #080f1b;
  margin: 0 0 0.25rem;
}

.es-setup-sub {
  font-size: 1rem;
  color: rgba(1, 1, 1, 0.5);
  margin: 0;
}

.btn-submit-kyc {
  background: #656565;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-reg);
  font-size: 0.9375rem;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.btn-submit-kyc:hover,
.btn-submit-kyc:active {
  background: #757575 !important;
  color: #fff !important;
}

/* Stepper row */
.es-stepper {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0;
  padding-bottom: 2px;
}

.es-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.es-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.es-step-done .es-step-icon {
  background: #62b37d;
  color: #fff;
}
.es-step-pend .es-step-icon {
  background: #f5f5f1;
  color: #555;
}
.es-step-lock .es-step-icon {
  background: #b1b1b1;
  color: #fff;
}

.es-step-label {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.es-step-done .es-step-label {
  color: var(--t-body-text);
}
.es-step-pend .es-step-label {
  color: var(--t-body-text);
}
.es-step-lock .es-step-label {
  color: #b1b1b1;
}

.es-step-line {
  flex: 1;
  min-width: 40px;
  height: 2px;
  margin: 0 0.75rem;
}

.es-step-line-done {
  background: #62b37d;
}
.es-step-line-gray {
  background: none;
  border-top: 2px dashed #d0d0d0;
}

/* §ES-2  ACCOUNT SUMMARY (empty) — icon-stat layout */
.es-stat-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.es-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f9f9f7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #92979d;
  font-size: 1.0625rem;
}

.es-stat-num {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--t-body-text);
  line-height: 1.2;
}

.es-stat-label {
  font-size: 0.75rem;
  color: #b1b1b1;
  line-height: 1.2;
}

/* §ES-3  ACCOUNT TILES */
.es-acct-tile {
  border-radius: 16px;
  border: 1px solid #e6e6e6;
  padding: 0.75rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 140px;
}

.es-acct-tile-blue {
  background: #57b2fc;
}
.es-acct-tile-light {
  background: #c8e8ff;
}

.es-acct-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.es-acct-tile-label {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.2;
}

.es-acct-tile-blue .es-acct-tile-label {
  color: #fff;
}
.es-acct-tile-light .es-acct-tile-label {
  color: var(--t-body-text);
}

.es-acct-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  flex-shrink: 0;
}

.es-acct-tile-light .es-acct-tile-icon {
  color: rgba(0, 0, 0, 0.5);
}

.es-acct-num {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 2.875rem;
  line-height: 1.2;
}

.es-acct-tile-blue .es-acct-num {
  color: #fff;
}
.es-acct-tile-light .es-acct-num {
  color: var(--t-body-text);
}

/* §ES-4  VOLUME STAT CARDS */
.es-vol-card {
  background: #fff;
  border: 1px solid #f9f9f7;
  border-radius: 16px;
  padding: 0.75rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 100px;
}

.es-vol-dot {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  flex-shrink: 0;
}

.es-vol-label {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--t-body-text);
}

.es-vol-num {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--t-body-text);
  line-height: 1.2;
}

.es-vol-sub {
  font-size: 0.75rem;
  color: #92979d;
  font-family: var(--font-reg);
}

/* §ES-5  PROMO (with background image) */
.es-promo-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.es-promo-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.es-promo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.es-promo-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 0.875rem;
}

.es-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dbf0ff;
  border-radius: 28px;
  padding: 0.2rem 0.5rem 0.2rem 0.25rem;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--t-body-text);
  align-self: flex-start;
}

.es-promo-title {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}

.es-promo-note {
  font-size: 0.875rem;
  color: #fff;
  margin: 0;
}

.btn-claim {
  background: #656565;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-reg);
  font-size: 0.9375rem;
  align-self: flex-start;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.btn-claim:hover {
  filter: brightness(1.2);
  color: #fff;
}

/* §ES-6  EMPTY STATE (D&W, Trade Behavior) */
.es-empty-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  flex: 1;
}

.es-empty-icon {
  width: 24px;
  height: 24px;
  opacity: 0.5;
}

.es-empty-text {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.875rem;
  color: #b1b1b1;
}

/* Trade behavior ghost bars */
.es-ghost-bars {
  height: 100px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 0 0 1rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
  margin-bottom: 0.5rem;
  position: relative;
}

.es-ghost-bars::before,
.es-ghost-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.07);
}

.es-ghost-bars::before {
  top: 30%;
}
.es-ghost-bars::after {
  top: 60%;
}

.es-ghost-bar-pair {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  flex: 1;
}

.es-ghost-bar {
  flex: 1;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.07);
  min-width: 6px;
}

.es-ghost-hint {
  font-size: 0.75rem;
  color: rgba(1, 1, 1, 0.3);
  text-align: center;
  font-family: var(--font-reg);
}

/* §ES-7  GHOST TABLE (Open Positions / Transactions) */
.es-ghost-wrap {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 180px;
}

.es-ghost-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.7;
}

.es-ghost-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 60%,
    rgba(255, 255, 255, 1) 30%,
    rgba(255, 255, 255, 0) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* §ES-8  ASSIGNED MANAGER WIDGET */
.es-manager-widget {
  background: #fff;
  border: 3px solid #ebedef;
  border-radius: 1rem;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem;
  gap: 0.625rem;
}

.es-manager-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #eee;
}

.es-manager-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.es-manager-name {
  font-size: 1rem;
  color: var(--t-body-text);
  font-family: var(--font-reg);
  line-height: 1.2;
  margin-bottom: 0;
}

.es-manager-sub {
  font-size: 0.875rem;
  opacity: 0.4;
  font-family: var(--font-reg);
  line-height: 1.2;
  margin-bottom: 0;
}

.btn-get-touch {
  border: 1px solid #ebedef;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: var(--t-body-text);
  font-size: 0.9375rem;
  font-family: var(--font-reg);
  background: #fff;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-get-touch:hover {
  background: #f5f5f5;
}

/* §ES-9  RESPONSIVE */
@media (max-width: 1199.98px) {
  .es-stepper {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .es-step-line {
    display: none;
  }
  .es-promo-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .es-setup-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .es-ghost-bars {
    height: 70px;
  }
}

/* ================================================
   SIDEBAR SUBNAV
================================================ */

.sidebar-has-sub {
  position: relative;
}

.sidebar-item.has-sub .sidebar-item-chevron {
  margin-left: auto;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  display: flex;
}
.sidebar-has-sub.open > .sidebar-item.has-sub .sidebar-item-chevron {
  transform: rotate(90deg);
}

.sidebar-submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 0.5rem 8px 6px 44px;
}
.sidebar-has-sub.open > .sidebar-submenu {
  display: flex;
}

.sidebar-sub-item {
  display: block;
  padding: 6px 10px;
  font-family: var(--font-reg);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  border-radius: 6px;
  transition:
    color 0.15s,
    background 0.15s;
  line-height: 1.2;
}
.sidebar-sub-item:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}
.sidebar-sub-item.active {
  color: #ff661e;
}

/* ================================================
   IB PROGRAMME PAGE
================================================ */

/* Commission summary banner */
.ib-commission-banner {
  background: var(--t-body-text);
  border-radius: 16px;
  padding: 24px 32px 24px 24px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.ib-commission-title {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 20px;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.2;
}

.ib-commission-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.ib-stat-label {
  font-family: var(--font-reg);
  font-size: 12px;
  color: #b1b1b1;
  line-height: 1.2;
  margin-bottom: 8px;
}
.ib-stat-label-lg {
  font-size: 14px;
}

.ib-stat-value {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 32px;
  color: #fff;
  line-height: 1.2;
}

.ib-commission-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.btn-ib-withdraw {
  background: #cc5526;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-reg);
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}
.btn-ib-withdraw:hover {
  background: #b84a20;
  color: #fff;
}

.btn-ib-ghost-white {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-reg);
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}
.btn-ib-ghost-white:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-ib-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-reg);
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}
.btn-ib-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* IB dashboard responsive grid rows (8/4 split) */
.ib-grid-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.ib-grid-main,
.ib-grid-side {
  min-width: 0;
}

/* Client status donut panels */
.ib-status-card {
  background: var(--card-bg);
  border-radius: 16px;
  border-bottom: 1px solid #f9f9f7;
}
.ib-donut-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  flex: 1 1 0;
  min-width: 140px;
}
.ib-donut-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.ib-donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.2;
}
.ib-donut-center-label {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 14px;
  color: var(--t-body-text);
}
.ib-donut-center-pct {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #92979d;
}

.ib-legend-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Client transactions card */
.ib-txn-card {
  background: var(--card-bg);
  border-radius: 16px;
  border-bottom: 1px solid #f9f9f7;
  padding: 12px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ib-txn-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ib-txn-amount {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 24px;
  color: var(--t-body-text);
  line-height: 1.2;
  white-space: nowrap;
}
.ib-txn-label {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #92979d;
  line-height: 1.2;
}

/* Client pipeline */
.ib-pipeline-card {
  background: var(--card-bg);
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 16px 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ib-pipeline-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.ib-pipeline-item {
  flex: 1 1 calc(50% - 12px);
  min-width: 200px;
}
.ib-pipeline-number {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 46px;
  color: var(--t-body-text);
  line-height: 1.2;
}
.ib-pipeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ib-pipeline-name {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 16px;
  color: #92979d;
  line-height: 1.2;
}
.ib-pipeline-pct {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #92979d;
  line-height: 1.2;
}
.ib-progress-track {
  height: 8px;
  background: #f0f1f1;

  overflow: hidden;
}
.ib-progress-fill {
  height: 100%;
}

/* Top 5 sub IB earnings */
.ib-top5-card {
  background: var(--card-bg);
  border: 1px solid #f0f1f1;
  border-radius: 12px;
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.ib-time-tabs {
  display: flex;
}
.ib-time-tab {
  padding: 4px 8px;
  font-family: var(--font-reg);
  font-size: 14px;
  color: #b1b1b1;
  border: none;
  background: transparent;
  border-bottom: 1px solid #ebedef;
  cursor: pointer;
  line-height: 16px;
}
.ib-time-tab.active {
  font-family: var(--font-med);
  font-weight: 500;
  color: var(--t-body-text);
  border-bottom-color: var(--t-body-text);
}

.ib-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ib-leader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ib-leader-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ib-leader-rank {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #b1b1b1;
  width: 20px;
  text-align: center;
}
.ib-leader-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--t-body-text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 13px;
  flex-shrink: 0;
}
.ib-leader-name {
  font-family: var(--font-reg);
  font-size: 14px;
  color: var(--t-body-text);
  line-height: 1;
}
.ib-leader-lots {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 16px;
  color: var(--t-body-text);
  line-height: 1.2;
  white-space: nowrap;
}
.ib-leader-lots-label {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #b1b1b1;
  line-height: 1.2;
}

/* IB view-all button */
.btn-ib-view-all {
  background: #fff;
  border: 1px solid #ebedef;
  border-radius: 8px;
  padding: 8px;
  font-family: var(--font-reg);
  font-size: 14px;
  color: var(--t-body-text);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-ib-view-all:hover {
  background: #f5f5f5;
}

/* IB header page title */
.ib-page-title {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 20px;
  color: #080f1b;
  line-height: 1.2;
}

/* IB currency pill */
.ib-currency-pill {
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 7px 12px;
  font-family: var(--font-reg);
  font-size: 16px;
  color: var(--t-body-text);

  line-height: 1.2;
}

@media (max-width: 1199.98px) {
  .ib-grid-row {
    grid-template-columns: 1fr;
  }
  .ib-commission-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .ib-commission-stats {
    gap: 24px;
  }
  .ib-commission-actions {
    flex-wrap: wrap;
  }
  .ib-pipeline-item {
    flex: 1 1 100%;
  }
}

/* ================================================
   DEPOSIT REPORT PAGE
================================================ */

.dr-stat-card {
  border-radius: 1rem;
  padding: 12px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 164px;
}
.dr-stat-card-dark {
  background: var(--t-body-text);
}
.dr-stat-card-light {
  background: #fff;
}

.dr-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dr-stat-title {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
}
.dr-stat-title-light {
  color: #fff;
}
.dr-stat-title-dark {
  color: var(--t-body-text);
}

.dr-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dr-stat-icon img {
  width: 21px;
  height: 21px;
}

.dr-stat-value {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 46px;
  line-height: 1.2;
}
.dr-stat-value-light {
  color: #fff;
}
.dr-stat-value-dark {
  color: var(--t-body-text);
}

/* Table card */
.dr-table-card {
  background: #fff;
  border: 1px solid #f9f9f7;
  border-radius: 16px;
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dr-result-tag {
  background: #f9f9f7;
  border: 1px solid rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  padding: 6px;
  font-family: var(--font-reg);
  font-size: 12px;
  color: #000;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-dr-export {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 8px;
  font-family: var(--font-reg);
  font-size: 14px;
  color: var(--t-body-text);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-dr-export:hover {
  background: #f5f5f5;
}

/* Search + Filters row */
.dr-search-wrap {
  background: #f9f9f7;
  border: 1px solid #f5f5f1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem;
  flex: 1;
  min-width: 0;
}
.dr-search-wrap img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.dr-search-input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-reg);
  font-size: 16px;
  color: rgba(0, 0, 0, 0.8);
  width: 100%;
}
.dr-search-input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.btn-dr-filters {
  background: #656565;
  border: 1.2px solid #e6e6e6;
  border-radius: 10px;
  padding: 10px 15px 10px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-reg);
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}
.btn-dr-filters img {
  width: 15px;
  height: 15px;
}
.btn-dr-filters:hover {
  background: #555;
}

/* Filter chips */
.dr-filter-chip {
  background: #f0f1f1;
  border: 1px solid rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.dr-chip-label {
  font-family: var(--font-reg);
  font-size: 10px;
  color: #92979d;
  line-height: 1.2;
}
.dr-chip-value {
  font-family: var(--font-reg);
  font-size: 14px;
  color: var(--t-body-text);
  line-height: 1.2;
}
.dr-chip-x {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Table scroll wrapper */
.dr-table-wrap {
  overflow-x: auto;
}

/* Table */
.dr-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
.dr-table thead th {
  font-family: var(--font-reg);
  font-size: 12px;
  color: #b1b1b1;
  text-align: left;
  padding: 0 8px 12px 0;
  white-space: nowrap;
  font-weight: normal;
}
.dr-table tbody tr {
  border-top: 1px solid #f9f9f7;
}
.dr-table tbody td {
  font-family: var(--font-reg);
  font-size: 14px;
  color: var(--t-body-text);
  padding: 10px 8px 10px 0;
  vertical-align: middle;
  white-space: nowrap;
}

/* Row avatar */
.dr-row-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--t-body-text);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 10px;
  flex-shrink: 0;
  letter-spacing: 1.2px;
}

/* Method tag */
.dr-method-tag {
  background: #f5f5f1;
  border: 1px solid #f9f9f7;
  border-radius: 8px;
  padding: 6px;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 12px;
  color: var(--t-body-text);
  display: inline-block;
  line-height: 1.2;
}

/* Proof link */
.dr-proof-link {
  background: #e6e6e6;
  border: 1px solid #f9f9f7;
  border-radius: 8px;
  padding: 6px 10px 6px 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-reg);
  font-size: 12px;
  color: var(--t-body-text);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}
.dr-proof-link img {
  width: 13px;
  height: 13px;
}
.dr-proof-link:hover {
  background: #d5d5d5;
  color: var(--t-body-text);
}

/* Status badges */
.dr-badge {
  border: 1px solid #f9f9f7;
  border-radius: 8px;
  padding: 6px 8px;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 12px;
  display: inline-block;
  white-space: nowrap;
  line-height: 1.2;
}
.dr-badge-approved {
  background: #e4f2e8;
  color: #257d3e;
}
.dr-badge-rejected {
  background: #ffeced;
  color: #a41618;
}
.dr-badge-pending {
  background: #f0f0d8;
  color: #261609;
}

/* Actions menu button */
.dr-action-btn {
  background: #e6e6e6;
  border: 1px solid #f9f9f7;
  border-radius: 8px;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.dr-action-btn img {
  width: 13px;
  height: 13px;
  display: block;
}
.dr-action-btn:hover {
  background: #d5d5d5;
}

/* Pagination bar */
.dr-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
}
.dr-page-info {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #92979d;
  line-height: 1.2;
}
.dr-page-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dr-page-nav {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.dr-page-nav img {
  width: 24px;
  height: 24px;
  display: block;
}

.dr-page-num {
  border-radius: 8px;
  padding: 6px 9px;
  font-family: var(--font-reg);
  font-size: 12px;
  cursor: pointer;
  line-height: 1.2;
  border: 1px solid #f9f9f7;
  background: transparent;
  color: #92979d;
}
.dr-page-num.active {
  background: #e6e6e6;
  color: var(--t-body-text);
}
.dr-page-num:not(.active):hover {
  background: #f5f5f5;
}

/* ================================================
   MASTER DETAIL PAGE
================================================ */

/* Profile banner */
.md-banner {
  background: var(--t-body-text);
  border-radius: 16px;
  padding: 36px 32px 36px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-shrink: 0;
}
.md-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.md-banner-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #656565;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 3px;
  flex-shrink: 0;
}
.md-banner-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.md-banner-namerow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.md-banner-name {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 20px;
  color: #fff;
  line-height: 1.2;
}
.md-verified-badge {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px 6px;
  font-family: var(--font-reg);
  font-size: 14px;
  color: #92979d;
  line-height: 1.2;
  white-space: nowrap;
}
.md-banner-since {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #656565;
  line-height: 1.2;
}

/* Banner stats */
.md-banner-stats {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.md-stat-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.md-stat-label {
  font-family: var(--font-reg);
  font-size: 12px;
  color: #b1b1b1;
  line-height: 1.2;
  white-space: nowrap;
}
.md-stat-value {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 32px;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}
.md-stat-value-red {
  color: #ff6b6a;
}
.md-stat-value-green {
  color: #62b37d;
}

/* Follow button */
.md-follow-btn {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-reg);
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  line-height: 1.2;
  flex-shrink: 0;
  white-space: nowrap;
  align-self: flex-start;
}
.md-follow-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Chart card */
.md-chart-card {
  background: #fff;
  border: 1px solid #f9f9f7;
  border-radius: 16px;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.md-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.md-chart-title {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 20px;
  color: var(--t-body-text);
  line-height: 1.2;
}

/* Time tabs (underline style) */
.md-time-tabs {
  display: flex;
}
.md-time-tab {
  padding: 4px 8px;
  font-family: var(--font-reg);
  font-size: 14px;
  color: #b1b1b1;
  border: none;
  border-bottom: 1px solid #ebedef;
  background: transparent;
  cursor: pointer;
  line-height: 16px;
  white-space: nowrap;
}
.md-time-tab.active {
  font-family: var(--font-med);
  font-weight: 500;
  color: var(--t-body-text);
  border-bottom-color: var(--t-body-text);
}

/* Return chart */
.md-return-chart-wrap {
  position: relative;
  height: 150px;
}

/* Monthly return bars */
.md-monthly-bars-wrap {
  display: flex;
  align-items: flex-end;
  height: 80px;
  gap: 8px;
  padding: 0 4px;
}
.md-monthly-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  height: 100%;
}
.md-monthly-bar {
  width: 12px;
  background: #00a03d;
  border-radius: 3px 3px 0 0;
}
.md-monthly-labels {
  display: flex;
  border-top: 1px solid #ebedef;
}
.md-monthly-label-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px 4px;
}
.md-monthly-label-val {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 13px;
  color: var(--t-body-text);
  line-height: 1.2;
  white-space: nowrap;
}
.md-monthly-label-period {
  font-family: var(--font-reg);
  font-size: 12px;
  color: #92979d;
  line-height: 1.2;
  white-space: nowrap;
}

/* Open Positions card */
.md-positions-card {
  background: #fff;
  border: 1px solid #f9f9f7;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.md-positions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.md-start-btn {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 8px;
  font-family: var(--font-reg);
  font-size: 14px;
  color: var(--t-body-text);
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}
.md-start-btn:hover {
  background: #f5f5f5;
}

/* Positions table */
.md-pos-table-wrap {
  overflow-x: auto;
}
.md-pos-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.md-pos-table thead th {
  font-family: var(--font-reg);
  font-size: 12px;
  color: #b1b1b1;
  text-align: left;
  padding: 0 12px 12px 0;
  white-space: nowrap;
  font-weight: normal;
}
.md-pos-table tbody tr {
  border-top: 1px solid #f9f9f7;
  opacity: 0.8;
}
.md-pos-table tbody td {
  padding: 10px 12px 10px 0;
  vertical-align: middle;
  white-space: nowrap;
}
.md-pos-cell {
  font-family: var(--font-reg);
  font-size: 14px;
  color: var(--t-body-text);
}
.md-pos-cell-med {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 14px;
  color: var(--t-body-text);
}
.md-pos-cell-muted {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #92979d;
}

.md-type-tag {
  border: 1px solid #f9f9f7;
  border-radius: 8px;
  padding: 5px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}
.md-type-buy {
  background: #e4f2e8;
  color: #124524;
}
.md-type-sell {
  background: #ffeced;
  color: #a41618;
}

/* Right column */
.md-right-col {
  width: 400px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Account Info & Trading stats cards */
.md-info-card,
.md-stats-card {
  background: #fff;
  border: 1px solid #f5f5f1;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.md-card-title {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 20px;
  color: var(--t-body-text);
  line-height: 1.2;
}

/* Account info rows */
.md-info-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.md-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.md-info-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #f9f9f7;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.md-info-icon-wrap img {
  width: 23px;
  height: 23px;
  display: block;
}
.md-info-label {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #92979d;
  line-height: 1.2;
  flex: 1;
}
.md-info-value {
  font-family: var(--font-reg);
  font-size: 16px;
  color: var(--t-body-text);
  line-height: 1.2;
  white-space: nowrap;
}
.md-info-value-green {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 16px;
  color: #00a03d;
  line-height: 1.2;
}

/* Trading stats – donut section */
.md-donut-section {
  display: flex;
  align-items: center;
  gap: 32px;
}
.md-donut-wrap {
  position: relative;
  width: 135px;
  height: 135px;
  flex-shrink: 0;
}
.md-donut-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}
.md-donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.md-donut-center-val {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 20px;
  color: var(--t-body-text);
  line-height: 1.2;
}
.md-donut-center-lbl {
  font-family: var(--font-reg);
  font-size: 12px;
  color: #92979d;
  line-height: 1.2;
}

.md-win-legend {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 103px;
}
.md-win-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.md-win-legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.md-win-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.md-win-label {
  font-family: var(--font-reg);
  font-size: 12px;
  color: var(--t-body-text);
  line-height: 1.2;
}
.md-win-count {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 14px;
  color: var(--t-body-text);
  line-height: 1.2;
}

/* Stats grid */
.md-stats-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.md-stats-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.md-stats-item-val {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 18px;
  color: var(--t-body-text);
  line-height: 1.2;
  white-space: nowrap;
}
.md-stats-item-lbl {
  font-family: var(--font-reg);
  font-size: 12px;
  color: #b1b1b1;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 1199.98px) {
  .md-banner {
    flex-direction: column;
  }
  .md-banner-stats {
    gap: 24px;
  }
  .md-right-col {
    width: 100%;
  }
}

/* ================================================
   COMPETITION PAGE
================================================ */

/* Banner */
.cp-banner {
  background: var(--t-body-text);
  border-radius: 16px;
  padding: 36px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-shrink: 0;
}
.cp-banner-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.cp-ended-badge {
  background: #656565;
  border-radius: 8px;
  padding: 6px 8px;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  line-height: 1.2;
  display: inline-flex;
  align-self: flex-start;
  white-space: nowrap;
}
.cp-banner-title {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 32px;
  color: #fff;
  line-height: 1.2;
}
.cp-banner-sub {
  font-family: var(--font-reg);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

/* Banner stats */
.cp-banner-stats {
  display: flex;
  align-items: flex-end;
  gap: 48px;
  flex: 1;
}
.cp-stat-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cp-stat-val {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 32px;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}
.cp-stat-lbl {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #92979d;
  line-height: 1.2;
  white-space: nowrap;
}

/* Your position bar */
.cp-position-bar {
  background: rgba(8, 15, 27, 0.08);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}
.cp-rank-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-reg);
  font-size: 18px;
  color: #261609;
  flex-shrink: 0;
}
.cp-pos-body {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.cp-pos-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cp-pos-name {
  font-family: var(--font-reg);
  font-size: 16px;
  color: var(--t-body-text);
  line-height: 1;
}
.cp-pos-sub {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #92979d;
  line-height: 1;
}
.cp-pos-gain-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.cp-pos-gain {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 20px;
  color: #257d3e;
  line-height: 1.2;
  white-space: nowrap;
}
.cp-pos-gain-lbl {
  font-family: var(--font-reg);
  font-size: 14px;
  color: var(--t-body-text);
  line-height: 1.2;
  white-space: nowrap;
}

/* Leaderboard card */
.cp-lb-card {
  background: #fff;
  border: 1px solid #f9f9f7;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Podium */
.cp-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding-bottom: 20px;
}
.cp-podium-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 176px;
  flex-shrink: 0;
}
.cp-podium-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cp-podium-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--t-body-text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-reg);
  font-size: 12px;
  flex-shrink: 0;
}
.cp-podium-name {
  font-family: var(--font-reg);
  font-size: 14px;
  color: var(--t-body-text);
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}
.cp-podium-prize {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  line-height: 12px;
  width: 100%;
}
.cp-prize-gold-text {
  color: #de9d00;
}
.cp-prize-silver-text {
  color: #869db2;
}
.cp-prize-bronze-text {
  color: #a9672f;
}
.cp-podium-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  width: 100%;
  font-size: 32px;
}
.cp-bar-gold {
  background: #fff6e1;
  height: 78px;
}
.cp-bar-silver {
  background: #ebedef;
  height: 46px;
}
.cp-bar-bronze {
  background: #f8ecdf;
  height: 37px;
}

/* Leaderboard table */
.cp-lb-table-wrap {
  overflow-x: auto;
}
.cp-lb-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}
.cp-lb-table thead th {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #b1b1b1;
  text-align: left;
  padding: 0 8px 12px 0;
  white-space: nowrap;
  font-weight: normal;
  line-height: 16px;
}
.cp-lb-table thead th:last-child {
  width: 12rem;
  text-align: right;
}
.cp-lb-table tbody tr {
  border-top: 1px solid #f9f9f7;
}
.cp-lb-table tbody td {
  padding: 10px 8px 10px 0;
  vertical-align: middle;
}
.cp-lb-table tbody td:last-child {
  text-align: right;
}
.cp-trader-cell {
  display: flex;
  gap: 6px;
  align-items: center;
}
.cp-trader-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--t-body-text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 10px;
  flex-shrink: 0;
  letter-spacing: 1.2px;
}
.cp-trader-name {
  font-family: var(--font-reg);
  font-size: 14px;
  color: var(--t-body-text);
  white-space: nowrap;
  line-height: 1;
}
.cp-lb-cell {
  font-family: var(--font-reg);
  font-size: 14px;
  color: var(--t-body-text);
  white-space: nowrap;
}
.cp-lb-rank-num {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #b1b1b1;
  white-space: pre;
  line-height: 1.2;
}
.cp-prize-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  line-height: 12px;
}
.cp-prize-tag-gold {
  background: #fff6e1;
  color: #de9d00;
}
.cp-prize-tag-silver {
  background: #ebedef;
  color: #869db2;
}
.cp-prize-tag-bronze {
  background: #f8ecdf;
  color: #a9672f;
}
.cp-no-prize {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #b1b1b1;
  white-space: nowrap;
}
.cp-view-btn {
  background: transparent;
  border: 1px solid #f5f5f1;
  border-radius: 8px;
  padding: 8px;
  font-family: var(--font-reg);
  font-size: 12px;
  color: var(--t-body-text);
  cursor: pointer;
  line-height: 16px;
  white-space: nowrap;
}
.cp-view-btn:hover {
  background: #f5f5f5;
}

/* Right column */
.cp-right-col {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Prize structure card */
.cp-prize-card {
  background: #fff;
  border: 1px solid #f0f1f1;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cp-prize-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cp-winners-badge {
  background: #f9f9f7;
  border: 1px solid rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  padding: 6px;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 12px;
  color: #000;
  line-height: 1.2;
}
.cp-prize-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 6px;
  border-radius: 8px;
}
.cp-prize-row-gold {
  background: #fff6e1;
}
.cp-prize-row-silver {
  background: #eff1f5;
}
.cp-prize-row-bronze {
  background: #f8ecdf;
}
.cp-prize-row-left {
  display: flex;
  gap: 4px;
  align-items: center;
}
.cp-prize-emoji {
  font-size: 32px;
  line-height: 16px;
  width: 32px;
  flex-shrink: 0;
}
.cp-prize-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cp-prize-place {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
}
.cp-prize-cash {
  font-family: var(--font-reg);
  font-size: 12px;
  color: #92979d;
  line-height: 1.2;
}
.cp-prize-amount {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Competition rules card */
.cp-rules-card {
  background: #fff;
  border: 1px solid #f5f5f1;
  border-radius: 12px;
  padding: 16px 24px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.cp-rules-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cp-rule-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cp-rule-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #f9f9f7;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cp-rule-icon img {
  width: 23px;
  height: 23px;
  display: block;
}
.cp-rule-label {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #92979d;
  flex: 1;
  line-height: 1.2;
}
.cp-rule-value {
  font-family: var(--font-reg);
  font-size: 16px;
  color: var(--t-body-text);
  white-space: nowrap;
  line-height: 1.2;
}

/* Medal (ribbon + metallic disc) — replaces emoji */
.cp-medal {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 26px;
  flex-shrink: 0;
  line-height: 1;
}
.cp-medal-ribbon {
  position: relative;
  width: 22px;
  height: 14px;
}
.cp-medal-ribbon::before,
.cp-medal-ribbon::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 7px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    #e23b3b 0 34%,
    #f4f4f4 34% 66%,
    #2d6bff 66% 100%
  );
}
.cp-medal-ribbon::before {
  left: 3px;
  transform: rotate(20deg);
}
.cp-medal-ribbon::after {
  right: 3px;
  transform: rotate(-20deg);
}
.cp-medal-disc {
  position: relative;
  z-index: 1;
  margin-top: -5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.cp-medal-gold .cp-medal-disc {
  background: radial-gradient(circle at 32% 28%, #ffd76b, #e0a012);
}
.cp-medal-silver .cp-medal-disc {
  background: radial-gradient(circle at 32% 28%, #eef2f6, #a9b4c0);
}
.cp-medal-bronze .cp-medal-disc {
  background: radial-gradient(circle at 32% 28%, #e6a877, #b06a30);
}
/* Larger medal for podium bars */
.cp-medal-lg {
  width: 40px;
}
.cp-medal-lg .cp-medal-ribbon {
  width: 32px;
  height: 18px;
}
.cp-medal-lg .cp-medal-ribbon::before,
.cp-medal-lg .cp-medal-ribbon::after {
  width: 10px;
  height: 26px;
}
.cp-medal-lg .cp-medal-ribbon::before {
  left: 4px;
}
.cp-medal-lg .cp-medal-ribbon::after {
  right: 4px;
}
.cp-medal-lg .cp-medal-disc {
  margin-top: -7px;
  width: 32px;
  height: 32px;
  font-size: 15px;
  border-width: 2px;
}

@media (max-width: 1199.98px) {
  .cp-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cp-banner-stats {
    gap: 24px;
  }
  .cp-right-col {
    width: 100%;
  }
  .cp-podium-col {
    width: 120px;
  }
  .cp-podium-bar {
    font-size: 24px;
  }
}

/* ================================================
   MANAGEMENT REPORT PAGE
================================================ */
/* Filter bar */
.mr-filter-bar {
  background: rgba(8, 15, 27, 0.1);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.mr-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.mr-filter-tag {
  background: #f0f1f1;
  border: 1px solid rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.mr-filter-key {
  font-family: var(--font-reg);
  font-size: 10px;
  color: #92979d;
  line-height: 1.2;
  white-space: nowrap;
}
.mr-filter-val {
  font-family: var(--font-reg);
  font-size: 14px;
  color: var(--t-body-text);
  line-height: 1.2;
  white-space: nowrap;
}
.mr-filter-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.mr-filter-icon img {
  width: 100%;
  height: 100%;
  display: block;
}
.mr-filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent
    url("../../img/new-version-img/icons/arrow-down-icon.svg") no-repeat right
    center;
  background-size: 12px;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--font-reg);
  font-size: 14px;
  color: var(--t-body-text);
  line-height: 1.2;
  padding: 0 20px 0 0;
}
.mr-filter-select option {
  font-family: var(--font-reg);
  color: var(--t-body-text);
}

/* Choices.js — match filter-tag pill style */
.mr-filter-tag .choices {
  margin: 0;
}
.mr-filter-tag .choices,
.mr-filter-tag .choices__inner {
  background: transparent;
  border: none;
  border-radius: 0;
  min-height: auto;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-size: 13px;
}
.mr-filter-tag .choices__inner {
  padding-right: 20px;
}
.mr-filter-tag .choices__list--single {
  padding: 0;
}
.mr-filter-tag .choices__list--single .choices__item {
  font-family: var(--font-reg);
  font-size: 14px;
  color: var(--t-body-text);
  line-height: 1.2;
}
.mr-filter-tag .choices.is-focused .choices__inner,
.mr-filter-tag .choices.is-open .choices__inner {
  border: none;
  box-shadow: none;
}
.mr-filter-tag .choices[data-type*="select-one"]::after {
  border-color: #92979d transparent transparent;
  right: 4px;
}
.mr-filter-tag .choices[data-type*="select-one"].is-open::after {
  border-color: transparent transparent #92979d;
}
.mr-filter-tag .choices__list--dropdown,
.mr-filter-tag .choices__list[aria-expanded] {
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  margin-top: 6px;
  min-width: 180px;
  z-index: 200;
}
.mr-filter-tag .choices__list--dropdown .choices__item {
  font-family: var(--font-reg);
  font-size: 14px;
  color: var(--t-body-text);
  padding: 8px 12px;
}
.mr-filter-tag
  .choices__list--dropdown
  .choices__item--selectable.is-highlighted {
  background: rgba(245, 102, 42, 0.1);
  color: var(--orange);
}
.mr-daterange {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.mr-date-trigger {
  cursor: pointer;
}
.mr-cal-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 200;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  padding: 8px;
}
.mr-cal-popup[hidden] {
  display: none;
}
.mr-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mr-btn-reset {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 8px;
  width: 70px;
  font-family: var(--font-reg);
  font-size: 14px;
  color: var(--t-body-text);
  text-align: center;
  cursor: pointer;
  line-height: 1.2;
}
.mr-btn-reset:hover {
  background: #f5f5f5;
}
.mr-btn-apply {
  background: #656565;
  border: none;
  border-radius: 8px;
  padding: 8px;
  width: 70px;
  font-family: var(--font-reg);
  font-size: 14px;
  color: #fff;
  text-align: center;
  cursor: pointer;
  line-height: 1.2;
}
.mr-btn-apply:hover {
  background: #4d4d4d;
}
.management-content {
  gap: 12px;
}
/* Stat cards row */
.mr-stat-cards {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}
.mr-stat-card {
  flex: 1 1 200px;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 12px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.mr-stat-card-dark {
  background: var(--t-body-text);
}
.mr-stat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mr-stat-card-title {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 16px;
  color: var(--t-body-text);
  line-height: 1.2;
}
.mr-stat-card-dark .mr-stat-card-title {
  color: #fff;
}
.mr-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mr-stat-icon img {
  width: 21px;
  height: 21px;
  display: block;
}
.mr-stat-icon-grey {
  background: #656565;
}
.mr-stat-icon-green {
  background: #e4f2e8;
}
.mr-stat-icon-cream {
  background: #f5f5f1;
}
.mr-stat-num {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 46px;
  color: var(--t-body-text);
  line-height: 1.2;
  white-space: nowrap;
}
.mr-stat-card-dark .mr-stat-num {
  color: #fff;
}
.mr-stat-sub {
  font-family: var(--font-reg);
  font-size: 12px;
  color: #92979d;
  line-height: 1.2;
}
/* Panel card */
.mr-panel {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mr-panel-title {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 20px;
  color: var(--t-body-text);
  line-height: 1.2;
}
.mr-metric-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.mr-metric {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mr-metric-val {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 32px;
  color: var(--t-body-text);
  line-height: 1.2;
  white-space: nowrap;
}
.mr-metric-lbl {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 16px;
  color: #92979d;
  line-height: 1.2;
}
/* Two-col equal row */
.mr-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}
.mr-row > * {
  flex: 1 1 320px;
  min-width: 0;
}
/* Pie / deposit by country */
.mr-pie-card {
  background: #fff;
  border: 1px solid #f9f9f7;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mr-tag-pill {
  background: #f9f9f7;
  border: 1px solid rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  padding: 6px;
  font-family: var(--font-reg);
  font-size: 12px;
  color: #000;
  line-height: 1.2;
  white-space: nowrap;
}
.mr-pie-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}
.mr-pie-wrap {
  position: relative;
  width: 135px;
  height: 135px;
  flex-shrink: 0;
}
.mr-pie-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}
.mr-pie-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mr-pie-center-val {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 14px;
  color: var(--t-body-text);
  line-height: 1.2;
}
.mr-pie-center-pct {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #92979d;
  line-height: 1.2;
}
.mr-pie-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mr-pie-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mr-pie-legend-left {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mr-pie-dot {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.mr-pie-dot-uae {
  background: #ff661e;
}
.mr-pie-legend-name {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 14px;
  color: var(--t-body-text);
  line-height: 1.2;
}
.mr-pie-legend-amt {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 16px;
  color: var(--t-body-text);
  line-height: 1.2;
  white-space: nowrap;
}
/* Mini leaderboard table card */
.mr-mini-card {
  background: #fff;
  border: 1px solid #f0f1f1;
  border-radius: 12px;
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 23px;
}
.mr-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mr-mini-title {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 20px;
  color: var(--t-body-text);
  line-height: 1.2;
}
.mr-mini-tabs {
  display: flex;
}
.mr-mini-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mr-mini-table {
  width: 100%;
  border-collapse: collapse;
}
.mr-mini-table thead th {
  font-family: var(--font-reg);
  font-size: 12px;
  color: #b1b1b1;
  text-align: left;
  font-weight: normal;
  padding-bottom: 12px;
  white-space: nowrap;
}
.mr-mini-table thead th.mr-num-col {
  text-align: right;
}
.mr-mini-rank {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #b1b1b1;
  width: 20px;
}
.mr-mini-trader {
  display: flex;
  gap: 6px;
  align-items: center;
}
.mr-mini-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--t-body-text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1.7px;
  flex-shrink: 0;
}
.mr-mini-name {
  font-family: var(--font-reg);
  font-size: 14px;
  color: var(--t-body-text);
  line-height: 1;
  white-space: nowrap;
}
.mr-mini-table td {
  padding: 6px 0;
}
.mr-mini-table td.mr-num-col {
  text-align: right;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 16px;
  color: var(--t-body-text);
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .mr-stat-num {
    font-size: 36px;
  }
  .mr-metric-val {
    font-size: 24px;
  }
  .user-dropdown {
    margin-left: auto;
  }
  .cp-pos-gain-wrap {
    align-items: flex-start;
  }
  .cp-position-bar {
    align-items: start;
  }
  .cp-podium {
    flex-direction: column;
    align-items: center;
  }
  .cp-podium .cp-podium-col:nth-child(1) {
    order: 2;
  }
  .cp-podium .cp-podium-col:nth-child(2) {
    order: 1;
  }
  .cp-podium .cp-podium-col:nth-child(3) {
    order: 3;
  }
  .cp-banner {
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .dr-pagination-bar {
    flex-direction: column;
    gap: 0.5rem;
  }
  .feature-text {
    font-size: 1rem;
  }
}

/* ============================================================
   §15  DASHBOARD REDESIGN  (screenshot match)
   ============================================================ */

/* Outline pill button (New Account / View All / Mark all read / Start Trading) */
.btn-pill-outline {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 0.45rem 1rem;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--t-body-text);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.btn-pill-outline:hover {
  background: #f5f3f1;
  border-color: rgba(0, 0, 0, 0.22);
  color: var(--t-body-text);
}

/* Account-number tabs */
.acc-num-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 1.1rem 0 1.4rem;
}
.acc-num-tab {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 22px;
  padding: 0.4rem 0.95rem;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.acc-num-tab:hover:not(.active) {
  border-color: rgba(0, 0, 0, 0.22);
  color: var(--t-body-text);
}
.acc-num-tab.active {
  background: var(--t-body-text);
  border-color: var(--t-body-text);
  color: #fff;
}

/* Account Summary stats (icon + value/label) */
.summary-stats {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  flex: 1;
  min-width: 150px;
}
.summary-stat {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.summary-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f9f9f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9a9a;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.summary-stat-value {
  font-family: var(--font-medium);
  font-size: 0.95rem;
  color: var(--t-body-text);
  line-height: 1.15;
  margin-bottom: 0.25rem;
}
.summary-stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.2;
}

/* Open / Demo account tiles */
.account-tile {
  border-radius: 20px;
  padding: 1.25rem 1.35rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--card-shadow);
}
.account-tile-blue {
  background: #4aa0ef;
  color: #fff;
}
.account-tile-light {
  background: #cfe6fa;
  color: #1f3a52;
}
.account-tile-label {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.95rem;
  width: 75%;
}
.account-tile-value {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  margin-top: auto;
}
.account-tile-icon {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.account-tile-blue .account-tile-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.account-tile-light .account-tile-icon {
  background: rgba(31, 58, 82, 0.12);
  color: #1f3a52;
}

/* Open / Total volume cards */
.volume-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.volume-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.volume-marker {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex-shrink: 0;
}
.volume-card-title {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--t-body-text);
}
.volume-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.volume-amount {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--t-body-text);
}
.volume-amount small {
  font-family: var(--font-reg);
  font-size: 0.7rem;
  color: var(--muted);
  margin-left: 0.3rem;
}
.volume-badge {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  color: #fff;
  white-space: nowrap;
}
.volume-badge-blue {
  background: var(--blue);
}
.volume-badge-orange {
  background: var(--orange);
}

/* Activity (simple dot list) */
.activity-desc {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 0.15rem;
  line-height: 1.35;
}
.activity-list .activity-item > .activity-dot {
  margin-top: 5px;
}

/* Deposit & Withdrawal — center pill + caption */
.circ-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--t-body-text);
  padding: 0.28rem 0.65rem;
  border-radius: 20px;
  white-space: nowrap;
}
.circ-pill-blue {
  background: #eaf1ff;
}
.circ-pill-yellow {
  background: #f6f3df;
}
.circ-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.circ-caption {
  font-size: 0.8rem;
  color: var(--muted);
}
.circ-caption b {
  color: var(--t-body-text);
  font-family: var(--font-med);
  font-weight: 500;
  font-weight: normal;
}

/* Wallet Summary (redesigned) */
.wallet-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.wallet-title {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 1.25rem;
  color: #fff;
  font-weight: normal;
}
.wallet-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.2rem;
}
.wallet-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.wallet-balance-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.wallet-balance {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 2.4rem;
  color: #fff;
  line-height: 1;
}
.wallet-balance-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.wallet-btn-row {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.5rem;
}
.wallet-btn {
  flex: 1;
  border-radius: 12px;
  padding: 0.6rem 0.5rem;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    filter 0.15s ease,
    background 0.15s ease;
}
.wallet-btn-deposit {
  background: var(--orange);
  color: #fff;
}
.wallet-btn-deposit:hover {
  filter: brightness(1.1);
  color: #fff;
}
.wallet-btn-dark {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.wallet-btn-dark:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.wallet-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.wallet-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Limited-offer promo card */
.promo-offer {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--t-body-text) url("../../img/new-version-img/card-bg.avif")
    no-repeat center center;
  background-size: cover;
  padding: 1.5rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
}
.promo-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #dbf0ff;

  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  align-self: flex-start;
}
.promo-offer-title {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  line-height: 1.15;
  margin-top: 0.9rem;
}
.promo-offer-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.4rem;
}
.btn-promo-dark {
  align-self: flex-start;
  margin-top: auto;
  background: #656565;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.55rem 1.4rem;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-promo-dark:hover {
  background: #555555;
  color: #fff;
}

/* ── IB Dashboard: inline-style replacements ── */
.ib-user-avatar {
  background: #1f1f1f;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 18px;
  flex-shrink: 0;
}
.ib-user-name {
  font-family: var(--font-reg);
  font-size: 16px;
  color: #1f1f1f;
  line-height: 1.2;
}
.ib-user-role {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #92979d;
  line-height: 1.2;
}

/* User dropdown */
.user-dropdown {
  position: relative;
}
.user-dropdown-toggle {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.user-dropdown-caret {
  color: #92979d;
  font-size: 14px;
  transition: transform 0.2s ease;
}
.user-dropdown.open .user-dropdown-caret {
  transform: rotate(180deg);
}
.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border-radius: var(--card-radius-small);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
  z-index: 1050;
}
.user-dropdown.open .user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-menu-item {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: var(--font-reg);
  font-size: 15px;
  color: #1f1f1f;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.user-menu-item:hover,
.user-menu-item:focus {
  background: #f5f3f1;
  color: #1f1f1f;
}
.user-menu-item.active {
  color: var(--orange);
  background: rgba(245, 102, 42, 0.08);
}
.ib-card-title {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 20px;
  color: #1f1f1f;
}
.ib-card-title-dark {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 20px;
  color: #080f1b;
}
.ib-legend-label {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #92979d;
}
.ib-legend-count {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 16px;
  color: #1f1f1f;
}
.ib-legend-dot-complete {
  background: #ff661e;
}
.ib-legend-dot-pending {
  background: #ebedef;
}
.ib-donut-legend {
  max-width: 172px;
}
.ib-donut-center-label-sm {
  font-size: 12px;
}
.ib-donut-center-label-xs {
  font-size: 11px;
}
.ib-fill-kyc {
  width: 68%;
  background: #57b2fc;
}
.ib-fill-live {
  width: 43%;
  background: #00a03d;
}
.ib-fill-ftd {
  width: 57%;
  background: #ff6b6a;
}
.ib-fill-subib {
  width: 18%;
  background: #ff661e;
}

/* ── Dashboard: inline-style replacements ── */
.volume-marker-blue {
  background: var(--blue);
}
.volume-marker-orange {
  background: var(--orange);
}
.activity-dot-blue {
  background: var(--blue);
}
.activity-dot-orange {
  background: var(--orange);
}
.activity-dot-dark {
  background: #1f1f1f;
}
.circ-pill-dot-blue {
  background: var(--blue);
}
.circ-pill-dot-yellow {
  background: var(--yellow);
}
.txn-amount-up {
  color: var(--orange);
}

/* ── Empty-state dashboard: inline-style replacements ── */
.es-vol-dot-blue {
  background: #61b8ff;
}
.es-vol-dot-orange {
  background: #ee5914;
}
.es-card-min {
  min-height: 260px;
}
.card-title-sm {
  font-size: 1.125rem;
}
.es-ghost-bar-h15 {
  height: 15%;
}
.es-ghost-bar-h20 {
  height: 20%;
}
.es-ghost-bar-h22 {
  height: 22%;
}
.es-ghost-bar-h24 {
  height: 24%;
}
.es-ghost-bar-h28 {
  height: 28%;
}
.es-ghost-bar-h35 {
  height: 35%;
}
.es-ghost-bar-h38 {
  height: 38%;
}
.es-ghost-bar-h42 {
  height: 42%;
}
.es-ghost-bar-h48 {
  height: 48%;
}
.es-ghost-bar-h55 {
  height: 55%;
}
.es-ghost-bar-h65 {
  height: 65%;
}
.es-ghost-bar-h72 {
  height: 72%;
}
.es-ghost-bar-h82 {
  height: 82%;
}

/* ── Deposit report: inline-style replacements ── */
.dr-stat-icon-gray {
  background: #656565;
}
.dr-stat-icon-green {
  background: #e4f2e8;
}
.dr-stat-icon-blue {
  background: #dbf0ff;
}
.dr-stat-icon-red {
  background: #ffeced;
}
.dr-table-title {
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 20px;
  color: #1f1f1f;
  line-height: 1.2;
}
.dr-cell-med {
  font-family: var(--font-med);
  font-weight: 500;
}
.dr-cell-reg {
  font-family: var(--font-reg);
  color: #1f1f1f;
}
.dr-cell-date {
  color: #92979d;
}
.dr-col-num {
  width: 48px;
}
.dr-col-user {
  min-width: 160px;
}
.dr-col-mt5 {
  min-width: 120px;
}
.dr-col-amount {
  min-width: 80px;
}
.dr-col-method {
  min-width: 90px;
}
.dr-col-proof {
  min-width: 100px;
}
.dr-col-status {
  min-width: 100px;
}
.dr-col-date {
  min-width: 160px;
}
.dr-col-reviewer {
  min-width: 110px;
}
.dr-col-action {
  width: 40px;
}

/* ── Master detail: inline-style replacements ── */
.md-main-bg {
  background: linear-gradient(to right, #faf5f0, #d6dadd);
}
.md-left-col {
  min-width: 0;
}
.md-chart-card-pb {
  padding-bottom: 16px;
}
.md-monthly-bar-h2 {
  height: 2px;
}
.md-monthly-bar-h62 {
  height: 62px;
}
.md-win-dot-green {
  background: #00a03d;
}
.md-win-dot-loss {
  background: #e6e6e6;
  border: 1px solid #ccc;
}
.md-win-dot-blue {
  background: #3673e8;
}

/* ── Competition: inline-style replacements ── */
.cp-col-rank {
  width: 90px;
}
.cp-col-trader {
  width: 220px;
}
.cp-col-balance {
  width: 140px;
}
.cp-col-pnl {
  width: 140px;
}
.cp-col-prize {
  width: 130px;
}

/* ================================================
   DIRECTION TOGGLE BUTTON  (floating, all pages)
================================================ */
.dir-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--orange, #f5662a);
  color: #fff;
  font-family: var(--bs-body-font-family, sans-serif);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}
.dir-toggle:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.dir-toggle:focus-visible {
  outline: 3px solid rgba(245, 102, 42, 0.4);
  outline-offset: 2px;
}
[dir="rtl"] .dir-toggle {
  right: auto;
  left: 20px;
}

/* ================================================
   RTL OVERRIDES  —  active only when <html dir="rtl">
   Base stylesheet stays LTR. Bootstrap's own RTL build
   (bootstrap.rtl.min.css) flips all Bootstrap utilities /
   components; the rules below flip the CUSTOM components
   that rely on physical (left/right) properties.
================================================ */

/* ── Marketing pages: mirror decorative + absolute blocks ── */
[dir="rtl"] .signup-page-body:after {
  right: auto;
  left: 0;
  background-position: left bottom;
}
[dir="rtl"] .su-content {
  left: auto;
  right: calc(34.38% - 26px);
  transform: translate(50%, -50%);
}
@media (max-width: 1199.98px) {
  [dir="rtl"] .su-content {
    right: 3rem;
    left: auto;
    transform: translateY(-50%);
  }
}
@media (max-width: 767.98px) {
  [dir="rtl"] .su-content {
    right: auto;
  }
}

/* ── Sidebar: end-pinned badge / chevron ── */
[dir="rtl"] .sidebar-item-badge,
[dir="rtl"] .sidebar-item-chevron,
[dir="rtl"] .sidebar-item.has-sub .sidebar-item-chevron {
  margin-left: 0;
  margin-right: auto;
}
/* Submenu indent moves to the right */
[dir="rtl"] .sidebar-submenu {
  padding-left: 8px;
  padding-right: 44px;
}
/* Expandable subnav chevron flips */
[dir="rtl"]
  .sidebar-has-sub.open
  > .sidebar-item.has-sub
  .sidebar-item-chevron {
  transform: rotate(-90deg);
}

/* ── Header ── */
[dir="rtl"] .notif-dot {
  right: auto;
  left: 5px;
}
[dir="rtl"] .currency-select {
  padding: 0 0 0 1.25rem;
  background-position: left 0 center;
}

/* ── User dropdown menu (align to inline-end) ── */
[dir="rtl"] .user-menu {
  right: auto;
  left: 0;
}
@media (max-width: 575.98px) {
  [dir="rtl"] .user-dropdown {
    margin-left: 0;
    margin-right: auto;
  }
}

/* ── Dashboard widgets ── */
[dir="rtl"] .account-tile-icon {
  right: auto;
  left: 1.1rem;
}
[dir="rtl"] .volume-amount small {
  margin-left: 0;
  margin-right: 0.3rem;
}

/* ── Data tables: header/cell alignment + column gap ── */
[dir="rtl"] .dr-table thead th,
[dir="rtl"] .md-pos-table thead th,
[dir="rtl"] .cp-lb-table thead th,
[dir="rtl"] .mr-mini-table thead th {
  text-align: right;
}
[dir="rtl"] .dr-table thead th {
  padding: 0 0 12px 8px;
}
[dir="rtl"] .dr-table tbody td {
  padding: 10px 0 10px 8px;
}
[dir="rtl"] .md-pos-table thead th {
  padding: 0 0 12px 12px;
}
[dir="rtl"] .md-pos-table tbody td {
  padding: 10px 0 10px 12px;
}
[dir="rtl"] .cp-lb-table thead th {
  padding: 0 0 12px 8px;
}
[dir="rtl"] .cp-lb-table tbody td {
  padding: 10px 0 10px 8px;
}
/* Numeric / last columns swap to the opposite edge */
[dir="rtl"] .cp-lb-table thead th:last-child,
[dir="rtl"] .cp-lb-table tbody td:last-child,
[dir="rtl"] .mr-mini-table thead th.mr-num-col,
[dir="rtl"] .mr-mini-table td.mr-num-col {
  text-align: left;
}

/* ── Custom select chevrons (background-image can't be logical) ── */
[dir="rtl"] .su-form .form-select {
  padding-right: 14px;
  padding-left: 36px;
  background-position: left 12px center;
}
[dir="rtl"] .mr-filter-select {
  padding: 0 0 0 20px;
  background-position: left center;
}

/* ── Management report: Choices.js + calendar popup ── */
[dir="rtl"] .mr-filter-tag .choices__inner {
  padding-right: 0;
  padding-left: 20px;
}
[dir="rtl"] .mr-filter-tag .choices[data-type*="select-one"]::after {
  right: auto;
  left: 4px;
}
[dir="rtl"] .mr-cal-popup {
  left: auto;
  right: 0;
}

/* ================================================
   BOOTSTRAP FORM CLASSES ON BESPOKE FIELDS
   Search boxes / phone prefix / inline filter selects now
   carry .form-control / .form-select for consistency + RTL.
   These resets keep their original borderless look while
   inheriting Bootstrap's base behaviour (sizing, RTL, a11y).
================================================ */
.sidebar-search-input.form-control,
.dr-search-input.form-control {
  height: auto;
  min-height: 0;
  padding: 0;
  line-height: 1.4;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--t-body-text);
  font-size: 0.875rem;
}
.sidebar-search-input.form-control:focus,
.dr-search-input.form-control:focus {
  background: transparent;
  box-shadow: none;
}
/* Phone prefix keeps its own compact box; only guard focus bg */
.su-phone-code.form-control:focus {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 0 0 3px rgba(255, 255, 255, 0.12);
}
/* Inline filter select stays borderless / auto-width */
.mr-filter-select.form-select {
  width: auto;
  box-shadow: none;
}
.mr-filter-select.form-select:focus {
  box-shadow: none;
}

[dir="rtl"] [type="email"],
[dir="rtl"] [type="number"],
[dir="rtl"] [type="tel"],
[dir="rtl"] [type="url"] {
  direction: rtl;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #60544b inset !important;
  -webkit-text-fill-color: #ececec !important;
  caret-color: #ececec !important;
}

/* ================================================
   ADMIN LOGIN  (node 1055-237)
================================================ */
.login-body {
  min-height: 100vh;
  background: var(--espresso) url("../../img/new-version-img/login-mesh.jpg")
    no-repeat center center;
  background-size: cover;
  padding: clamp(1rem, 2.5vw, 2.5rem);
}

.login-box {
  position: relative;
  min-height: calc(100vh - 5rem);
  overflow: hidden;
  border-radius: clamp(1rem, 2vw, 2rem);
  background: #1a1006 url("../../img/new-version-img/loin-box-bg.avif")
    no-repeat center center;
  background-size: cover;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 5vw, 5rem);
}

.login-brand-icon {
  height: 26px;
  width: auto;
  opacity: 0.4;
}

.login-brand-name {
  letter-spacing: 0.04em;
  color: rgba(238, 247, 255, 0.4);
  font-size: 1.5rem;
}

/* Glass info pill */
.login-pill {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  border-radius: 1rem;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  color: var(--grey-400);
  white-space: nowrap;
}

.login-pill img {
  width: 20px;
  height: 20px;
}

.login-main {
  min-height: calc(100vh - 16rem);
  max-width: 700px;
}

.login-top-bar {
  width: 100%;
}

.login-brand-block {
  max-width: 420px;
}
.login-brand-block p {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
}

.login-intro {
  max-width: 675px;
}

.login-intro p {
  font-size: clamp(1rem, 2vw, 1.125rem);
}

/* Quick actions */
.quick-btn {
  border: none;
  border-radius: 8px;
  background: var(--grey-20);
  color: var(--t-body-text);
  padding: 0.625rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.quick-btn:hover {
  filter: brightness(0.97);
}
.quick-primary {
  background: var(--t-btn);
  color: var(--t-text);
}

.hamburger {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--t-body-text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hamburger:hover,
.hamburger:active,
.hamburger:focus-visible {
  background: #000 !important;
  color: #fff !important;
}

/* IB header page title */
.ib-page-title {
  font-family: var(--font-med);
  font-weight: 400;
  font-size: 20px;
  color: #080f1b;
  line-height: 1.2;
}

/* IB currency pill */
.ib-currency-pill {
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 7px 12px;
  font-family: var(--font-reg);
  font-size: 16px;
  color: var(--t-body-text);

  line-height: 1.2;
}

.ib-user-name {
  font-family: var(--font-reg);
  font-size: 16px;
  color: #1f1f1f;
  line-height: 1.2;
}
.ib-user-role {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #92979d;
  line-height: 1.2;
}

/* ── IB Dashboard: inline-style replacements ── */
.ib-user-avatar {
  background: #1f1f1f;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--font-med);
  font-weight: 500;
  font-size: 18px;
  flex-shrink: 0;
}
.ib-user-name {
  font-family: var(--font-reg);
  font-size: 16px;
  color: #1f1f1f;
  line-height: 1.2;
}
.ib-user-role {
  font-family: var(--font-reg);
  font-size: 14px;
  color: #92979d;
  line-height: 1.2;
}

.user-dropdown {
  position: relative;
}
.user-dropdown-toggle {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.user-dropdown-caret {
  color: #92979d;
  font-size: 14px;
  transition: transform 0.2s ease;
}
.user-dropdown.open .user-dropdown-caret {
  transform: rotate(180deg);
}
.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border-radius: var(--card-radius-small);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
  z-index: 1050;
}
.user-dropdown.open .user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-menu-item {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: var(--font-reg);
  font-size: 15px;
  color: #1f1f1f;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.user-menu-item:hover,
.user-menu-item:focus {
  background: #f5f3f1;
  color: #1f1f1f;
}
.user-menu-item.active {
  color: var(--orange);
  background: rgba(245, 102, 42, 0.08);
}

@media (max-width: 575.98px) {
  .user-dropdown {
    margin-left: auto;
  }
}

/* Alert banners */
.alert {
  background: rgba(8, 15, 27, 0.1);
  border-radius: 16px;
  padding: 0.5rem;
}
.alert-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--grey-20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t-body-text);
}
.alert-strong {
  font-weight: 500;
  color: var(--t-body-text-13);
}
.alert-muted {
  color: var(--grey-400);
  font-size: 0.875rem;
}
.btn-ghost {
  border: 1px solid var(--grey-200);
  background: var(--white);
  color: var(--t-body-text);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
}
.btn-ghost:hover {
  background: var(--grey-10);
}
.btn-grey {
  border: none;
  background: var(--grey-600);
  color: var(--white);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
}
.btn-grey:hover {
  background: var(--grey-700);
}

/* Stat cards */
.stat {
  background: var(--t-text);
  border: 1px solid var(--grey-200);
  border-radius: 16px;
  padding: 0.75rem 1.5rem 1.5rem;
  gap: 1.5rem;
  min-height: 164px;
}
.stat-dark {
  background: var(--t-body-text);
}
.stat-title {
  font-weight: 500;
  font-size: 1rem;
  color: var(--t-body-text);
}
.stat-dark .stat-title {
  color: var(--t-text);
}
.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.icon-grey {
  background: var(--grey-600);
  color: var(--t-text);
}
.icon-green {
  background: var(--green-50);
  color: #1f8a4c;
}
.icon-cream {
  background: var(--grey-20);
  color: var(--t-body-text);
}
.stat-num {
  font-weight: 500;
  font-size: 2.875rem;
  line-height: 1.1;
  color: var(--t-body-text);
}
.stat-dark .stat-num {
  color: var(--t-text);
}
.stat-sub {
  font-size: 0.75rem;
  color: var(--grey-400);
  margin-top: 0.25rem;
}

/* Card */
.card {
  background: var(--white);
  border: 1px solid var(--grey-10);
  border-radius: 16px;
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--t-body-text);
}
.tag {
  background: var(--grey-10);
  border: 1px solid rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  padding: 0.375rem;
  font-size: 0.75rem;
  color: #000;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.25rem;
}
.tab {
  border: none;
  background: none;
  border-bottom: 1px solid var(--grey-100);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  color: var(--grey-300);
  cursor: pointer;
}
.tab.active {
  color: var(--t-body-text);
  font-weight: 500;
  border-bottom-color: var(--t-body-text);
}

/* Chart */
.chart-wrap {
  height: 196px;
  position: relative;
}
.legend-item {
  font-size: 0.75rem;
  color: var(--t-body-text);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-dep {
  background: var(--orange);
}
.dot-wd {
  background: #3673e8;
}
.dot-ib {
  background: #e4db8d;
}

/* Financial summary table */
.fin-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--t-body-text);
  padding: 0.25rem 0;
}
.fin-head {
  color: var(--grey-300);
  font-size: 0.75rem;
}

/* Client breakdown */
.break-num {
  font-weight: 500;
  font-size: 2rem;
  color: var(--t-body-text);
}
.break-lbl {
  font-weight: 500;
  font-size: 1rem;
  color: var(--grey-400);
}
.text-orange {
  color: var(--orange) !important;
}

/* Quick actions */
.quick-btn {
  border: none;
  border-radius: 8px;
  background: var(--grey-20);
  color: var(--t-body-text);
  padding: 0.625rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.quick-btn:hover {
  filter: brightness(0.97);
}
.quick-primary {
  background: var(--orange);
  color: var(--card-bg);
}

/* Pending actions */
.pend-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--grey-10);
  color: var(--t-body-text);
  flex-shrink: 0;
  font-size: 1.1rem;
}
.pend-icon-red {
  background: var(--red-50);
  color: #d12b3a;
}
.pend-title {
  font-size: 0.875rem;
  color: var(--t-body-text);
}
.pend-sub {
  font-size: 0.75rem;
  color: var(--grey-400);
}
.pend-num {
  font-size: 1.25rem;
  color: var(--t-body-text);
}
.pend-arrow {
  color: var(--grey-300);
  font-size: 1rem;
}

/* ================================================
   RTL OVERRIDES  —  flip physical props not covered
   by bootstrap.rtl.css (logical utils flip on their own)
================================================ */
[dir="rtl"] .feature-icon {
  padding-left: 0.875rem;
  padding-right: 0;
}

[dir="rtl"] [type="email"],
[dir="rtl"] [type="number"],
[dir="rtl"] [type="tel"],
[dir="rtl"] [type="url"] {
  direction: rtl;
}
