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

:root {
  --bg-main: #121520;
  --bg-panel: #1c1f2d;
  --bg-sidebar: #151823;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-active: rgba(255, 255, 255, 0.15);
  --text-primary: #ffffff;
  --text-muted: #8d94ab;
  --color-green: #09c480;
  --color-red: #ff5c6a;
  --color-blue: #026fd3;
  --color-blue-hover: #0056b3;
  --color-primary: #026fd3;
  --color-primary-glow: rgba(2, 111, 211, 0.2);
  --color-yellow: #ffb800;
  --font-main: 'Inter', 'Roboto', sans-serif;
  --sidebar-width: 68px;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow: hidden;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* App Container */
.app {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
}

/* Layout */
.app__body {
  display: flex;
  flex: 1;
  height: calc(100vh - var(--header-height));
  width: 100%;
  overflow: hidden;
}

/* Sidebar */
.app__sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  z-index: 10;
  justify-content: space-between;
}

.sidebar__logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  cursor: pointer;
}

.sidebar__logo {
  width: 32px;
  height: 32px;
  fill: #fff;
  transition: transform 0.3s ease;
}

.sidebar__logo-container:hover .sidebar__logo {
  transform: rotate(-10deg) scale(1.05);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: center;
}

.sidebar__item {
  width: 50px;
  height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: none;
  background: transparent;
}

.sidebar__item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  margin-bottom: 4px;
}

.sidebar__item span {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.sidebar__item:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.04);
}

.sidebar__item.active {
  color: var(--text-primary);
  background-color: rgba(2, 111, 211, 0.15);
  box-shadow: inset 0 0 0 1px rgba(2, 111, 211, 0.3);
}

.sidebar__item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background-color: var(--color-blue);
  border-radius: 0 4px 4px 0;
}

.sidebar__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--color-blue);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  line-height: 12px;
  border: 1.5px solid var(--bg-sidebar);
}

.sidebar__footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.sidebar__profile-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a3d52 0%, #1c1f2d 100%);
  border: 1.5px solid var(--border-color-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 11px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.sidebar__profile-pic:hover {
  transform: scale(1.08);
}

.sidebar__action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.sidebar__action-btn:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar__action-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}


/* Header */
.header {
  height: var(--header-height);
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 11;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary); /* Branco Puro */
  text-decoration: none;
}

.logo .highlight {
  color: var(--color-primary); /* Azul Onyx Neon: #026FD3 */
}

.logo-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary); /* Azul Onyx Neon: #026FD3 */
  
  /* Efeito de Luz Neon Azul expandida */
  filter: drop-shadow(0 0 8px var(--color-primary-glow)); 
}

.header__platform-tag {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  border-left: 1px solid var(--border-color-active);
  padding-left: 12px;
}

.header__asset-select {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header__asset-select:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--border-color-active);
}

.flags-container {
  display: flex;
  align-items: center;
  position: relative;
  width: 28px;
  height: 18px;
}

.flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--bg-panel);
  background-size: cover;
  background-position: center;
}

.flag-2 {
  position: absolute;
  right: 0;
  z-index: 1;
}

.flag-1 {
  position: absolute;
  left: 0;
  z-index: 2;
}

.header__asset-name {
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}

.header__asset-payout {
  font-weight: 700;
  font-size: 12px;
  color: var(--color-green);
  background-color: rgba(9, 196, 128, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.header__caret {
  width: 12px;
  height: 12px;
  fill: var(--text-muted);
  transition: transform 0.2s ease;
}

.header__asset-select:hover .header__caret {
  fill: #fff;
  transform: translateY(1px);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Account selector */
.header__account-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header__account-box:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--border-color-active);
}

.account-box__icon {
  width: 18px;
  height: 18px;
  color: var(--color-blue);
}

.account-box__details {
  display: flex;
  flex-direction: column;
}

.account-box__label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.account-box__balance {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.header__notifications-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.header__notifications-btn:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
}

.header__notifications-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--color-red);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 8px;
}

.header__actions {
  display: flex;
  gap: 8px;
}

.btn-header {
  border: none;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-header svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.btn-deposit {
  background-color: var(--color-green);
  color: #121520;
}

.btn-deposit:hover {
  background-color: #0bd48c;
  transform: translateY(-1px);
}

.btn-withdrawal {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
}

.btn-withdrawal:hover {
  background-color: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}


/* Main Workspace Layout */
.workspace {
  display: flex;
  flex: 1;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* Center Panel (Chart) */
.chart-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-main);
  position: relative;
  overflow: hidden;
}

.chart-panel__tabs {
  height: 48px;
  background-color: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.chart-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color-active);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  height: 34px;
  transition: all 0.2s ease;
}

.chart-tab.active {
  background-color: var(--bg-main);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.chart-tab__close {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.chart-tab__close:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.1);
}

.chart-tab__add {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px dashed var(--border-color-active);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-tab__add:hover {
  border-color: #fff;
  color: #fff;
  background-color: rgba(255,255,255,0.02);
}

/* The actual Graph Container */
.chart-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.chart-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

/* Floating overlay widgets on the chart */
.chart-info-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 16px;
  z-index: 5;
  pointer-events: none;
}

.info-overlay__item {
  background-color: rgba(28, 31, 45, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-overlay__label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.info-overlay__value {
  font-size: 13px;
  font-weight: 700;
}

.info-overlay__value.green {
  color: var(--color-green);
}

.info-overlay__value.red {
  color: var(--color-red);
}

/* Chart Toolbars (bottom overlay) */
.chart-toolbar {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: rgba(28, 31, 45, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: 8px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.chart-toolbar__btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 11px;
}

.chart-toolbar__btn:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.08);
}

.chart-toolbar__btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.chart-zoom-bar {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: rgba(28, 31, 45, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: 8px;
  display: flex;
  gap: 6px;
  z-index: 5;
}


/* Right Trade / Operations Side Panel */
.side-panel {
  width: 320px;
  background-color: var(--bg-panel);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  z-index: 9;
}

.side-panel__controls {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.control-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-stepper {
  display: flex;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  height: 48px;
  align-items: center;
  transition: border-color 0.2s ease;
}

.input-stepper:focus-within {
  border-color: var(--border-color-active);
}

.stepper-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 44px;
  height: 100%;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.stepper-btn:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.04);
}

.stepper-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-main);
  outline: none;
  width: 100%;
}

.trade-payout-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background-color: rgba(9, 196, 128, 0.06);
  border: 1px solid rgba(9, 196, 128, 0.15);
  border-radius: 8px;
}

.payout-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.payout-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-green);
}

/* Buy / Sell Buttons */
.trade-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-trade {
  height: 52px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-trade svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.btn-up {
  background-color: var(--color-green);
  box-shadow: 0 4px 16px rgba(9, 196, 128, 0.2);
}

.btn-up:hover {
  background-color: #0bd48c;
  transform: translateY(-1px);
}

.btn-down {
  background-color: var(--color-red);
  box-shadow: 0 4px 16px rgba(255, 92, 106, 0.2);
}

.btn-down:hover {
  background-color: #ff707c;
  transform: translateY(-1px);
}

/* Active micro-loading effect inside up/down buttons */
.btn-loader {
  position: absolute;
  right: 20px;
  display: none;
}


/* Operations/Trades Panel (bottom half of sidebar) */
.side-panel__history {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.history-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(0,0,0,0.08);
}

.history-tab {
  flex: 1;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.history-tab.active {
  color: #fff;
  border-bottom-color: var(--color-blue);
  background-color: var(--bg-panel);
}

.history-count {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
}

.history-tab.active .history-count {
  background-color: var(--color-blue);
  color: #fff;
}

.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: 12px;
  padding: 32px 0;
}

.history-empty svg {
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.08);
}

/* History Card */
.history-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.history-card:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--border-color-active);
}

.history-card__header {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.history-card__asset-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-card__asset-name {
  font-weight: 600;
  font-size: 12px;
}

.history-card__details {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-card__type-indicator {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-card__type-indicator svg {
  width: 100%;
  height: 100%;
}

.history-card__type-indicator.up {
  color: var(--color-green);
}

.history-card__type-indicator.down {
  color: var(--color-red);
}

.history-card__amount {
  font-weight: 500;
  font-size: 11px;
}

.history-card__payout {
  font-weight: 700;
  font-size: 12px;
  min-width: 50px;
  text-align: right;
}

.history-card__payout.win {
  color: var(--color-green);
}

.history-card__payout.loss {
  color: var(--text-muted);
}

.history-card__body {
  padding: 0 12px 10px;
  border-top: 1px dashed var(--border-color);
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
  padding-top: 8px;
}

.history-card.expanded .history-card__body {
  display: flex;
}

.history-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
}

.history-detail-row span:last-child {
  color: #fff;
  font-weight: 500;
}

.history-detail-id {
  font-family: monospace;
  font-size: 9px;
  word-break: break-all;
}

/* Micro-notification banner when trade completes */
.trade-toast {
  position: fixed;
  bottom: 24px;
  right: 340px;
  background-color: rgba(28, 31, 45, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
}

.trade-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.trade-toast__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trade-toast__icon.win {
  background-color: rgba(9, 196, 128, 0.15);
  color: var(--color-green);
}

.trade-toast__icon.loss {
  background-color: rgba(255, 92, 106, 0.15);
  color: var(--color-red);
}

.trade-toast__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trade-toast__title {
  font-weight: 700;
  font-size: 13px;
}

.trade-toast__desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Account Dropdown Switcher Menu Styles */
.header__account-box {
  position: relative; /* Context for absolute positioning of dropdown */
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color-active);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  padding: 10px;
  display: none; /* Toggled by JS */
  flex-direction: column;
  gap: 6px;
  z-index: 1000;
}

.account-dropdown.show {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  background-color: rgba(255, 255, 255, 0.01);
}

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

.dropdown-item.active {
  background-color: rgba(2, 111, 211, 0.08);
  border-color: rgba(2, 111, 211, 0.25);
}

.dropdown-item__details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none; /* Avoid clicking internal tags */
}

.dropdown-item__label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dropdown-item__balance {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

/* Demo color overrides (Orange theme) */
.dropdown-item__label.demo {
  color: var(--color-yellow) !important;
}

.dropdown-item__balance.demo {
  color: var(--color-yellow) !important;
}

.dropdown-item__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-reload {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-reload:hover {
  color: var(--color-yellow);
  background-color: rgba(255, 255, 255, 0.06);
  transform: rotate(180deg);
}

.btn-reload svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Time Presets Dropdown Styles */
.time-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color-active);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  padding: 6px;
  display: none; /* Toggled by JS */
  flex-direction: column;
  gap: 4px;
  z-index: 999;
}

.time-dropdown.show {
  display: flex;
}

.time-dropdown-item {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 11px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.time-dropdown-item:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.04);
}

.time-dropdown-item.active {
  color: #fff;
  background-color: rgba(2, 111, 211, 0.1);
  border-color: rgba(2, 111, 211, 0.25);
  font-weight: 600;
}

/* Chart Toolbar Dropdowns */
.chart-toolbar {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: rgba(28, 31, 45, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: 8px;
  display: flex;
  gap: 6px;
  z-index: 100;
}

.toolbar-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color-active);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  z-index: 1000;
}

.toolbar-dropdown.show {
  display: flex;
}

.toolbar-dropdown-item {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 11px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.toolbar-dropdown-item:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.04);
}

.toolbar-dropdown-item.active {
  color: #fff;
  background-color: rgba(2, 111, 211, 0.12);
  font-weight: 600;
}

/* Multi-select indicator items */
.toolbar-dropdown-item-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 11px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.toolbar-dropdown-item-checkbox:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.04);
}

.toolbar-dropdown-item-checkbox input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--color-blue);
  width: 13px;
  height: 13px;
}

.toolbar-dropdown-item-checkbox label {
  cursor: pointer;
  flex: 1;
}

/* Active drawing overlay banner */
.drawing-helper {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(20, 24, 38, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  display: none; /* controlled by js class switching */
  align-items: center;
  gap: 12px;
  z-index: 1000;
  font-weight: 500;
  font-size: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid rgba(0, 240, 255, 0.8);
}

.drawing-helper.show {
  display: flex;
}

.btn-cancel-drawing {
  background-color: rgba(255, 92, 106, 0.12);
  border: 1px solid rgba(255, 92, 106, 0.25);
  color: var(--color-red);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-cancel-drawing:hover {
  background-color: var(--color-red);
  color: #fff;
}

/* Asset Selector Modal Styles */
.asset-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(12, 14, 22, 0.7);
  backdrop-filter: blur(10px);
  display: none; /* JS toggled */
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.asset-modal.show {
  display: flex;
}

.asset-modal__content {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color-active);
  border-radius: 14px;
  width: 380px;
  max-width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: modalSlideIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

@keyframes modalSlideIn {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.asset-modal__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.asset-modal__header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.asset-modal__close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.asset-modal__close:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

.asset-modal__list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 420px;
  overflow-y: auto;
}

.asset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0.01);
}

.asset-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.asset-item__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-item__name {
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}

.asset-item__payout {
  font-weight: 700;
  font-size: 11px;
  color: var(--color-green);
  background-color: rgba(9, 196, 128, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.asset-search-box:focus-within {
  border-color: rgba(2, 111, 211, 0.5) !important;
  box-shadow: 0 0 8px rgba(2, 111, 211, 0.2);
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Sidebar Drawer Style */
.sidebar-drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 100%;
  background: rgba(20, 24, 38, 0.75);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  pointer-events: none; /* Only capture clicks when open */
}

.sidebar-drawer.open {
  transform: translateX(0);
  pointer-events: auto;
}

.sidebar-drawer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s ease;
  line-height: 1;
}

.sidebar-drawer__close:hover {
  color: #fff;
}

/* Individual Panels */
.drawer-panel {
  display: none;
  flex-direction: column;
  height: 100%;
  padding: 24px 20px;
  overflow-y: auto;
}

.drawer-panel.active {
  display: flex;
}

.drawer-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.drawer-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.drawer-section {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.stat-value {
  color: #fff;
  font-weight: 600;
}

.stat-value.green {
  color: var(--color-green);
}

/* Profile Card */
.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-blue), #00c6ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.profile-badge {
  font-size: 9px;
  font-weight: 700;
  color: #09c480;
  background: rgba(9, 196, 128, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  width: max-content;
}

.profile-id {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Chat Module */
.support-chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: calc(100% - 70px);
}

.support-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  color: #e0e6ed;
  border-bottom-left-radius: 2px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--color-blue);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.chat-bubble.typing {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 4px;
}

.support-chat__input-container {
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.support-chat__input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.support-chat__input:focus {
  border-color: var(--color-blue);
}

.support-chat__send {
  background: var(--color-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.support-chat__send:hover {
  opacity: 0.9;
}

/* Tournaments */
.tournament-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tournament-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.tournament-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tournament-name {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

.tournament-prize {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-green);
}

.tournament-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.btn-tournament-action {
  margin-top: 8px;
  background: rgba(2, 111, 211, 0.15);
  color: var(--color-blue);
  border: 1px solid rgba(2, 111, 211, 0.3);
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-tournament-action:hover:not(:disabled) {
  background: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
}

.btn-tournament-action.registered {
  background: rgba(9, 196, 128, 0.15) !important;
  color: #09c480 !important;
  border-color: rgba(9, 196, 128, 0.3) !important;
  cursor: default;
}

.tournament-card.locked {
  opacity: 0.6;
}

.btn-tournament-action.disabled {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--text-muted) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  cursor: not-allowed;
}

/* Mercado */
.points-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(2, 111, 211, 0.12), rgba(0, 198, 255, 0.05));
  border: 1px solid rgba(2, 111, 211, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #fff;
}

.points-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-blue);
}

.market-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.market-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.market-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.market-title {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

.market-cost {
  font-size: 12px;
  font-weight: 700;
  color: #f39c12;
  background: rgba(243, 156, 18, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.market-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.btn-market-action {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-market-action:hover:not(:disabled) {
  background: var(--color-blue);
  border-color: var(--color-blue);
}

.btn-market-action.redeemed {
  background: rgba(9, 196, 128, 0.15) !important;
  color: #09c480 !important;
  border-color: rgba(9, 196, 128, 0.3) !important;
  font-size: 11px;
  font-family: monospace;
}

/* Settings & Toggles */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.setting-item.flex-column {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.setting-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.setting-label {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.setting-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.settings-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  font-family: var(--font-main);
  transition: border-color 0.2s;
}

.settings-select:focus {
  border-color: var(--color-blue);
}

/* Switch styling iOS style */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 24px;
}

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

input:checked + .switch-slider {
  background-color: #09c480;
}

input:checked + .switch-slider:before {
  transform: translateX(20px);
}

/* Order Confirmation Modal CSS */
.order-confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(12, 14, 22, 0.7);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.order-confirm-modal.show {
  display: flex;
}

.order-confirm-modal__content {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color-active);
  border-radius: 14px;
  width: 340px;
  max-width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: modalSlideIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.order-confirm-modal__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-confirm-modal__header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.order-confirm-modal__close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.order-confirm-modal__close:hover {
  color: #fff;
}

.order-confirm-modal__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.confirm-asset-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.confirm-detail-row {
  display: flex;
  gap: 16px;
}

.confirm-detail-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.confirm-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.confirm-value {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.confirm-value.direction-up {
  color: var(--color-green);
}

.confirm-value.direction-down {
  color: var(--color-red);
}

.confirm-value.green {
  color: var(--color-green);
}

.order-confirm-modal__footer {
  padding: 16px 20px;
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
}

.btn-confirm-action {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
}

.btn-confirm-action.cancel {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-confirm-action.cancel:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-confirm-action.confirm {
  background: var(--color-blue);
  color: #fff;
}

.btn-confirm-action.confirm:hover {
  opacity: 0.9;
}

/* Theme Styles Overrides */
body.theme-cyberpunk {
  --bg-main: #0c0514;
  --bg-panel: #160a22;
  --bg-sidebar: #0f0618;
  --color-blue: #ff007f;
  --color-blue-hover: #e00070;
  --color-green: #00ffaa;
  --border-color-active: rgba(255, 0, 127, 0.4);
}

body.theme-bluemoon {
  --bg-main: #060e1d;
  --bg-panel: #0d1a30;
  --bg-sidebar: #091223;
  --color-blue: #00e1ff;
  --color-blue-hover: #00c3de;
  --color-green: #00ffaa;
  --border-color-active: rgba(0, 225, 255, 0.4);
}

/* Central de Notificações Dropdown */
.notifications-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color-active);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.notifications-dropdown__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  background: rgba(0, 0, 0, 0.15);
}

.notifications-dropdown__list {
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notification-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-blue);
}

.notification-item.unread {
  background: rgba(2, 111, 211, 0.08);
  border-color: rgba(2, 111, 211, 0.2);
}

.notification-item__title {
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-item__title::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--color-blue);
  border-radius: 50%;
  display: none;
}

.notification-item.unread .notification-item__title::after {
  display: block;
}

.notification-item__content {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.notification-item__date {
  font-size: 9px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 2px;
}

/* Central de Tickets UI */
.ticket-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.ticket-item-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-blue);
}

.ticket-item-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-item-card__subject {
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}

.ticket-item-card__id {
  font-size: 10px;
  color: var(--text-muted);
  font-family: monospace;
}

.ticket-item-card__preview {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-item-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 6px;
  margin-top: 4px;
}

.status-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.status-badge.pending {
  color: #f39c12;
  background: rgba(243, 156, 18, 0.12);
}

.status-badge.waiting_response {
  color: #3498db;
  background: rgba(52, 152, 219, 0.12);
}

.status-badge.replied {
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.12);
}

.status-badge.closed {
  color: #95a5a6;
  background: rgba(149, 165, 166, 0.12);
}

/* Chat thread styles for tickets detail view */
.ticket-bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticket-bubble.user {
  align-self: flex-end;
  background: var(--color-blue);
  color: #fff;
  border-bottom-right-radius: 2px;
  text-align: right;
}

.ticket-bubble.admin {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  color: #e0e6ed;
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  text-align: left;
}

.ticket-bubble__header {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.ticket-bubble.user .ticket-bubble__header {
  color: rgba(255,255,255,0.8);
}

.ticket-bubble.admin .ticket-bubble__header {
  color: var(--color-blue);
}

.ticket-bubble__time {
  font-size: 9px;
  opacity: 0.6;
  align-self: flex-end;
  margin-top: 2px;
}

/* Form Styles */
.support-form-group {
  text-align: left;
}

.support-form-group input.support-input,
.support-form-group textarea.support-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
  color: #fff;
  font-size: 12px;
  outline: none;
  width: 100%;
}

.support-form-group input.support-input:focus,
.support-form-group textarea.support-input:focus {
  border-color: var(--color-blue);
}

/* Tema Claro (White Theme) styling overrides */
body.theme-white {
  --bg-main: #f3f4f6;
  --bg-panel: #ffffff;
  --bg-sidebar: #ebedf2;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-active: rgba(2, 111, 211, 0.25);
  --text-primary: #1f2937;
  --text-muted: #6b7280;
  --color-blue: #026fd3;
  --color-blue-hover: #0056b3;
}

body.theme-white .header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.theme-white .header__notifications-btn {
  color: #4b5563 !important;
}

body.theme-white .header__notifications-btn:hover {
  background-color: rgba(0,0,0,0.03) !important;
}

body.theme-white .btn-deposit {
  background: var(--color-blue) !important;
  color: #fff !important;
}

body.theme-white .btn-withdrawal {
  background: rgba(0, 0, 0, 0.03) !important;
  color: #4b5563 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.theme-white .btn-withdrawal:hover {
  background: rgba(0, 0, 0, 0.06) !important;
}

body.theme-white .app__sidebar {
  background: #ebedf2 !important;
  border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.theme-white .sidebar__item {
  color: #4b5563 !important;
}

body.theme-white .sidebar__item.active {
  background-color: #ffffff !important;
  color: var(--color-blue) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

body.theme-white .sidebar__item:hover:not(.active) {
  background-color: rgba(0,0,0,0.02) !important;
}

body.theme-white .sidebar__action-btn {
  color: #4b5563 !important;
}

body.theme-white .sidebar__action-btn.active {
  background-color: #ffffff !important;
  color: var(--color-blue) !important;
}

body.theme-white .chart-panel {
  background-color: #ffffff !important;
}

body.theme-white .chart-panel__tabs {
  background-color: #ebedf2 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.theme-white .chart-tab {
  background-color: rgba(0, 0, 0, 0.02) !important;
  border-right: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #4b5563 !important;
}

body.theme-white .chart-tab.active {
  background-color: #ffffff !important;
  color: #1f2937 !important;
}

body.theme-white .chart-tab:hover:not(.active) {
  background-color: rgba(0,0,0,0.04) !important;
}

body.theme-white .chart-tab__add {
  color: #4b5563 !important;
  background-color: rgba(0, 0, 0, 0.02) !important;
}

body.theme-white .chart-tab__add:hover {
  background-color: rgba(0,0,0,0.05) !important;
}

body.theme-white .chart-toolbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.theme-white .chart-toolbar__btn {
  color: #4b5563 !important;
}

body.theme-white .chart-toolbar__btn:hover {
  background-color: rgba(0,0,0,0.03) !important;
}

body.theme-white .chart-toolbar__btn.active {
  background-color: rgba(2, 111, 211, 0.08) !important;
  color: var(--color-blue) !important;
}

body.theme-white .toolbar-dropdown {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  color: #1f2937 !important;
}

body.theme-white .toolbar-dropdown-item {
  color: #4b5563 !important;
}

body.theme-white .toolbar-dropdown-item:hover {
  background-color: rgba(0,0,0,0.03) !important;
  color: #1f2937 !important;
}

body.theme-white .side-panel {
  background: #ffffff !important;
  border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #1f2937 !important;
}

body.theme-white .side-panel__block {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.theme-white .block-label {
  color: #6b7280 !important;
}

body.theme-white .panel-input-box {
  background: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.theme-white .panel-input-box input {
  color: #1f2937 !important;
}

body.theme-white .panel-input-box button {
  color: #4b5563 !important;
}

body.theme-white .panel-input-box button:hover {
  background: rgba(0,0,0,0.03) !important;
}

body.theme-white .side-panel__tabs {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.theme-white .panel-tab {
  color: #6b7280 !important;
}

body.theme-white .panel-tab.active {
  color: var(--color-blue) !important;
  border-bottom-color: var(--color-blue) !important;
}

body.theme-white .sidebar-drawer {
  background: rgba(255, 255, 255, 0.85) !important;
  border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.08) !important;
}

body.theme-white .drawer-title {
  color: #1f2937 !important;
}

body.theme-white .drawer-subtitle {
  color: #6b7280 !important;
}

body.theme-white .profile-card {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

body.theme-white .profile-name {
  color: #1f2937 !important;
}

body.theme-white .profile-id {
  color: #6b7280 !important;
}

body.theme-white .stat-value {
  color: #1f2937 !important;
}

body.theme-white .tournament-card {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
}

body.theme-white .tournament-name {
  color: #1f2937 !important;
}

body.theme-white .market-card {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
}

body.theme-white .market-title {
  color: #1f2937 !important;
}

body.theme-white .btn-market-action {
  background: rgba(0, 0, 0, 0.03) !important;
  color: #1f2937 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.theme-white .btn-market-action:hover:not(:disabled) {
  background: var(--color-blue) !important;
  color: #fff !important;
  border-color: var(--color-blue) !important;
}

body.theme-white .setting-label {
  color: #1f2937 !important;
}

body.theme-white .settings-select {
  background: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #1f2937 !important;
}

body.theme-white .settings-select option {
  background: #ffffff !important;
  color: #1f2937 !important;
}

body.theme-white .switch-slider {
  background-color: rgba(0, 0, 0, 0.08) !important;
}

/* Light adjustments for Tickets system */
body.theme-white .ticket-item-card {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
}

body.theme-white .ticket-item-card:hover {
  border-color: var(--color-blue) !important;
  background: rgba(0, 0, 0, 0.03) !important;
}

body.theme-white .ticket-item-card__subject {
  color: #1f2937 !important;
}

body.theme-white .ticket-bubble.admin {
  background: rgba(0, 0, 0, 0.02) !important;
  color: #1f2937 !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
}

body.theme-white .support-form-group input.support-input,
body.theme-white .support-form-group textarea.support-input {
  background: rgba(0, 0, 0, 0.02) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #1f2937 !important;
}

body.theme-white .support-form-group input.support-input:focus,
body.theme-white .support-form-group textarea.support-input:focus {
  border-color: var(--color-blue) !important;
}

body.theme-white .notifications-dropdown {
  background: #ffffff !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

body.theme-white .notifications-dropdown__header {
  color: #1f2937 !important;
  background: rgba(0, 0, 0, 0.02) !important;
}

body.theme-white .notification-item {
  background: rgba(0, 0, 0, 0.01) !important;
  border-color: rgba(0, 0, 0, 0.04) !important;
}

body.theme-white .notification-item:hover {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: var(--color-blue) !important;
}

body.theme-white .notification-item.unread {
  background: rgba(2, 111, 211, 0.06) !important;
  border-color: rgba(2, 111, 211, 0.15) !important;
}

body.theme-white .notification-item__title {
  color: #1f2937 !important;
}

/* Light styling for confirmed modal overlay */
body.theme-white .order-confirm-modal__content {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

body.theme-white .order-confirm-modal__header h3 {
  color: #1f2937 !important;
}

body.theme-white .confirm-asset-row {
  background: rgba(0, 0, 0, 0.01) !important;
  border-color: rgba(0, 0, 0, 0.04) !important;
}

body.theme-white .confirm-value {
  color: #1f2937 !important;
}

body.theme-white .order-confirm-modal__footer {
  background-color: rgba(0, 0, 0, 0.01) !important;
}

body.theme-white .btn-confirm-action.cancel {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
  color: #4b5563 !important;
}

body.theme-white .btn-confirm-action.cancel:hover {
  background: rgba(0, 0, 0, 0.06) !important;
}

/* --- White Theme Additional High-Premium Polish Overrides --- */
body.theme-white {
  --color-yellow: #d97706 !important;
}

/* 1. Header & Navigation Brand elements */
body.theme-white .logo {
  color: #1f2937 !important;
}

body.theme-white .header__platform-tag {
  color: #9ca3af !important;
}

/* 2. Top-bar active asset selection container */
body.theme-white .header__asset-select {
  background-color: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #1f2937 !important;
}

body.theme-white .header__asset-name {
  color: #1f2937 !important;
}

body.theme-white .header__asset-payout {
  color: #09c480 !important;
}

/* 3. Account selector and balance dropdowns */
body.theme-white .header__account-box {
  background-color: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #1f2937 !important;
}

body.theme-white .account-box__label {
  color: #6b7280 !important;
}

body.theme-white .account-box__balance {
  color: #1f2937 !important;
}

body.theme-white .header__caret {
  color: #4b5563 !important;
}

body.theme-white .account-dropdown {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

body.theme-white .dropdown-item {
  color: #1f2937 !important;
  background: transparent !important;
}

body.theme-white .dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.02) !important;
}

body.theme-white .dropdown-item.active {
  background-color: rgba(2, 111, 211, 0.05) !important;
  color: var(--color-blue) !important;
}

body.theme-white .dropdown-item__label {
  color: #4b5563 !important;
}

body.theme-white .dropdown-item__label.demo {
  color: #d97706 !important;
}

body.theme-white .dropdown-item__balance {
  color: #1f2937 !important;
}

body.theme-white .dropdown-item__balance.demo {
  color: #d97706 !important;
}

body.theme-white .btn-reload svg {
  fill: #6b7280 !important;
}

body.theme-white .btn-reload:hover svg {
  fill: var(--color-blue) !important;
}

body.theme-white .btn-withdrawal {
  background: #f3f4f6 !important;
  color: #374151 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  transition: all 0.2s ease !important;
}

body.theme-white .btn-withdrawal:hover {
  background: #e5e7eb !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

/* 4. Chart floating overlays (price variance, server realtime status) */
body.theme-white .info-overlay__item {
  background-color: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

body.theme-white .info-overlay__value {
  color: #1f2937 !important;
}

body.theme-white .info-overlay__value.green {
  color: #09c480 !important;
}

body.theme-white .info-overlay__value.red {
  color: #ff5c6a !important;
}

/* 5. Stepper Inputs and trading options fields in Right Panel */
body.theme-white .input-stepper {
  background-color: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.theme-white .stepper-input {
  color: #1f2937 !important;
}

body.theme-white .stepper-btn {
  color: #4b5563 !important;
}

body.theme-white .stepper-btn:hover {
  color: #1f2937 !important;
  background-color: rgba(0, 0, 0, 0.04) !important;
}

body.theme-white .control-label {
  color: #6b7280 !important;
}

body.theme-white .trade-payout-box {
  background-color: rgba(9, 196, 128, 0.05) !important;
  border-color: rgba(9, 196, 128, 0.12) !important;
}

body.theme-white .payout-label {
  color: #4b5563 !important;
}

body.theme-white .payout-value {
  color: #09c480 !important;
}

body.theme-white .time-dropdown {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

body.theme-white .time-dropdown-item {
  color: #4b5563 !important;
}

body.theme-white .time-dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.03) !important;
  color: #1f2937 !important;
}

body.theme-white .time-dropdown-item.active {
  background-color: rgba(2, 111, 211, 0.08) !important;
  color: var(--color-blue) !important;
}

/* 6. Plus Button and Asset Selector Modal */
body.theme-white .chart-tab__add {
  color: #4b5563 !important;
  background-color: rgba(0, 0, 0, 0.02) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.theme-white .chart-tab__add:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

body.theme-white .asset-modal {
  background-color: rgba(255, 255, 255, 0.6) !important;
}

body.theme-white .asset-modal__content {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
}

body.theme-white .asset-modal__header {
  border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

body.theme-white .asset-modal__header h3 {
  color: #1f2937 !important;
}

body.theme-white .asset-modal__close {
  color: #6b7280 !important;
}

body.theme-white .asset-modal__close:hover {
  color: #1f2937 !important;
  background-color: rgba(0, 0, 0, 0.04) !important;
}

body.theme-white #asset-search-input {
  color: #1f2937 !important;
}

body.theme-white .asset-search-box {
  background-color: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

body.theme-white .asset-search-box svg {
  stroke: #4b5563 !important;
}

body.theme-white .asset-item {
  background-color: rgba(0, 0, 0, 0.01) !important;
  border-color: transparent !important;
}

body.theme-white .asset-item:hover {
  background-color: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.04) !important;
}

body.theme-white .asset-item__name {
  color: #4b5563;
}

body.theme-white .asset-item__payout {
  color: #09c480 !important;
}

/* ==========================================================================
   Withdrawal & Profile Forms System Styles
   ========================================================================== */

.withdrawal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(12, 14, 22, 0.7);
  backdrop-filter: blur(10px);
  display: none; /* JS toggled */
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.withdrawal-modal.show {
  display: flex;
}
.withdrawal-modal__content {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color-active);
  border-radius: 14px;
  width: 420px;
  max-width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: modalSlideIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}
.withdrawal-modal__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.withdrawal-modal__header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.withdrawal-modal__close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.withdrawal-modal__close:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}
.withdrawal-modal__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 80vh;
  overflow-y: auto;
}

/* Withdrawal Balance Card */
.withdrawal-balance-card {
  background: linear-gradient(135deg, rgba(28, 31, 45, 0.6) 0%, rgba(21, 24, 35, 0.8) 100%);
  border: 1px solid var(--border-color-active);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.withdrawal-balance-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.withdrawal-balance-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-green);
  margin: 6px 0;
}
.withdrawal-min-info {
  font-size: 11px;
  color: var(--text-muted);
}
.withdrawal-min-info strong {
  color: #fff;
}

/* Form Styles */
.withdrawal-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.withdrawal-form-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.withdrawal-amount-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 12px;
  height: 40px;
  transition: all 0.2s ease;
}
.withdrawal-amount-input-box:focus-within {
  border-color: var(--color-blue);
  background-color: rgba(255, 255, 255, 0.05);
}
.withdrawal-currency-prefix {
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 6px;
  font-weight: 600;
}
.withdrawal-amount-input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  width: 100%;
}
.withdrawal-select {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  height: 40px;
  padding: 0 12px;
  font-family: var(--font-main);
  font-size: 12px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.withdrawal-select:focus {
  border-color: var(--color-blue);
}
.withdrawal-select option {
  background-color: var(--bg-panel);
  color: #fff;
}
.withdrawal-method-hint {
  font-size: 10px;
  color: var(--color-yellow);
  line-height: 1.3;
  margin-top: 2px;
}

/* Submit Button */
.btn-withdrawal-submit {
  background: var(--color-blue);
  color: #fff;
  border: none;
  height: 42px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-withdrawal-submit:hover:not(:disabled) {
  background: var(--color-blue-hover);
}
.btn-withdrawal-submit:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* History Section */
.withdrawal-history-section {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: 5px;
}
.history-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.withdrawal-table-container {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.01);
}
.withdrawal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}
.withdrawal-table th, .withdrawal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
}
.withdrawal-table th {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 1;
}
.withdrawal-table tr:last-child td {
  border-bottom: none;
}
.withdrawal-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.01);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: default;
}
.status-badge.pending {
  background-color: rgba(241, 196, 15, 0.08);
  border: 1px solid rgba(241, 196, 15, 0.2);
  color: var(--color-yellow);
  cursor: pointer; /* Highlight that it can be double clicked in mockup */
}
.status-badge.completed {
  background-color: rgba(9, 196, 128, 0.08);
  border: 1px solid rgba(9, 196, 128, 0.2);
  color: var(--color-green);
}
.status-badge.cancelled {
  background-color: rgba(255, 92, 106, 0.08);
  border: 1px solid rgba(255, 92, 106, 0.2);
  color: var(--color-red);
}

/* Profile Form inside drawer panel */
.profile-warning {
  font-size: 11px;
  line-height: 1.4;
  color: var(--color-yellow);
  background: rgba(241, 196, 15, 0.08);
  border: 1px solid rgba(241, 196, 15, 0.15);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 12px;
}
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-field label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.profile-field input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 10px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 12px;
  outline: none;
  transition: all 0.2s;
}
.profile-field input:focus {
  border-color: var(--color-blue);
  background-color: rgba(255, 255, 255, 0.05);
}
.profile-field input:disabled, .profile-field input[readonly] {
  background-color: rgba(255, 255, 255, 0.01) !important;
  border-color: rgba(255, 255, 255, 0.03) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed;
}
.btn-profile-save {
  background: var(--color-blue);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
  margin-top: 6px;
  transition: all 0.2s ease;
}
.btn-profile-save:hover {
  background: var(--color-blue-hover);
}
.btn-profile-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   White Theme Overrides
   ========================================================================== */

body.theme-white .withdrawal-modal {
  background-color: rgba(255, 255, 255, 0.7) !important;
}
body.theme-white .withdrawal-modal__content {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}
body.theme-white .withdrawal-modal__header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}
body.theme-white .withdrawal-modal__header h3 {
  color: #1f2937 !important;
}
body.theme-white .withdrawal-modal__close {
  color: #6b7280 !important;
}
body.theme-white .withdrawal-modal__close:hover {
  color: #1f2937 !important;
  background-color: rgba(0, 0, 0, 0.04) !important;
}
body.theme-white .withdrawal-balance-card {
  background: #f9fafb !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}
body.theme-white .withdrawal-min-info strong {
  color: #1f2937 !important;
}
body.theme-white .withdrawal-amount-input-box {
  background-color: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
body.theme-white .withdrawal-amount-input-box:focus-within {
  border-color: var(--color-blue) !important;
  background-color: rgba(0, 0, 0, 0.01) !important;
}
body.theme-white .withdrawal-amount-input {
  color: #1f2937 !important;
}
body.theme-white .withdrawal-select {
  background-color: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #1f2937 !important;
}
body.theme-white .withdrawal-select option {
  background-color: #ffffff !important;
  color: #1f2937 !important;
}
body.theme-white .history-title {
  color: #1f2937 !important;
}
body.theme-white .withdrawal-history-section {
  border-top-color: rgba(0, 0, 0, 0.06) !important;
}
body.theme-white .withdrawal-table-container {
  border-color: rgba(0, 0, 0, 0.06) !important;
  background-color: transparent !important;
}
body.theme-white .withdrawal-table th {
  background-color: rgba(0, 0, 0, 0.01) !important;
  border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}
body.theme-white .withdrawal-table td {
  border-bottom-color: rgba(0, 0, 0, 0.04) !important;
  color: #4b5563 !important;
}
body.theme-white .withdrawal-table tr:hover td {
  background-color: rgba(0, 0, 0, 0.01) !important;
}
body.theme-white .profile-field input {
  background-color: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #1f2937 !important;
}
body.theme-white .profile-field input:focus {
  border-color: var(--color-blue) !important;
  background-color: rgba(0, 0, 0, 0.01) !important;
}
body.theme-white .profile-field input:disabled, 
body.theme-white .profile-field input[readonly] {
  background-color: rgba(0, 0, 0, 0.01) !important;
  border-color: rgba(0, 0, 0, 0.03) !important;
  color: #9ca3af !important;
}

/* ==========================================================================
   Account Verification Status, Document Upload & Deletion Styles
   ========================================================================== */

/* Account Status Badges */
.status-account-badge {
  font-size: 8px !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.status-account-badge.pending {
  background-color: var(--color-yellow) !important;
  color: #000 !important;
  border: 1px solid rgba(241, 196, 15, 0.3) !important;
}
.status-account-badge.approved {
  background-color: var(--color-green) !important;
  color: #fff !important;
  border: 1px solid rgba(9, 196, 128, 0.3) !important;
}
.status-account-badge.rejected {
  background-color: var(--color-red) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 92, 106, 0.3) !important;
}

/* Document Upload */
.doc-upload-box:hover {
  border-color: var(--color-blue) !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
}
.doc-upload-box.uploaded {
  border-color: var(--color-green) !important;
  background-color: rgba(9, 196, 128, 0.03) !important;
}
.doc-upload-box.uploaded svg {
  fill: var(--color-green) !important;
}

/* Delete Account Modal */
.delete-account-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(12, 14, 22, 0.7);
  backdrop-filter: blur(10px);
  display: none; /* JS toggled */
  align-items: center;
  justify-content: center;
  z-index: 11000;
}
.delete-account-modal.show {
  display: flex;
}
.delete-account-modal__content {
  background-color: var(--bg-panel);
  border: 1px solid rgba(255, 92, 106, 0.3);
  border-radius: 14px;
  width: 380px;
  max-width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: modalSlideIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}
.delete-account-modal__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.delete-account-modal__header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-red);
}
.delete-account-modal__close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.delete-account-modal__close:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}
.btn-delete-account-confirm:disabled {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed;
}

/* White Theme overrides */
body.theme-white .delete-account-modal {
  background-color: rgba(255, 255, 255, 0.7) !important;
}
body.theme-white .delete-account-modal__content {
  background-color: #ffffff !important;
  border-color: rgba(255, 92, 106, 0.3) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}
body.theme-white .delete-account-modal__header {
  border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}
body.theme-white .delete-account-modal__close {
  color: #6b7280 !important;
}
body.theme-white .delete-account-modal__close:hover {
  color: #1f2937 !important;
  background-color: rgba(0, 0, 0, 0.04) !important;
}
body.theme-white .delete-code-display {
  color: #1f2937 !important;
  background: rgba(0,0,0,0.03) !important;
  border-color: rgba(0,0,0,0.08) !important;
}
body.theme-white .doc-upload-box {
  background: rgba(0,0,0,0.01) !important;
  border-color: rgba(0,0,0,0.1) !important;
}
body.theme-white .doc-upload-box:hover {
  background: rgba(0,0,0,0.03) !important;
}
body.theme-white .doc-upload-box.uploaded {
  background: rgba(9, 196, 128, 0.05) !important;
}

/* --- Authentication Overlay --- */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 12, 22, 0.82);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeInAuth 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInAuth {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-box {
  background: rgba(28, 31, 45, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: slideUpAuth 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpAuth {
  from { transform: translateY(30px); }
  to { transform: translateY(0); }
}

.auth-box__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.auth-box__logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #026fd3, #09c480);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(2, 111, 211, 0.3);
}

.auth-box__logo .logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}

.auth-box__logo .logo-text-accent {
  color: #026fd3;
}

.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 0;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.auth-tab.active {
  background: var(--color-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(2, 111, 211, 0.25);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.auth-form.active {
  display: flex;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-label {
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.auth-input-wrapper input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px 12px 42px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.auth-input-wrapper input:focus {
  border-color: var(--color-blue);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(2, 111, 211, 0.15);
}

.auth-input-wrapper input:focus + .auth-input-icon {
  color: var(--color-blue);
}

.btn-auth-submit {
  background: var(--color-blue);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 700;
  padding: 14px 0;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(2, 111, 211, 0.2);
  margin-top: 10px;
}

.btn-auth-submit:hover {
  background: var(--color-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 111, 211, 0.3);
}

.btn-auth-submit:active {
  transform: translateY(0);
}

.auth-error-msg {
  background: rgba(255, 92, 106, 0.08);
  border: 1px solid rgba(255, 92, 106, 0.15);
  color: var(--color-red);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11.5px;
  margin-top: 20px;
  line-height: 1.4;
  animation: shakeError 0.35s ease-in-out;
  text-align: center;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.shake-error {
  animation: shakeError 0.35s ease-in-out;
}

.auth-loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinAuthLoader 0.7s linear infinite;
}

@keyframes spinAuthLoader {
  to { transform: rotate(360deg); }
}

/* White Theme overrides for Auth UI */
body.theme-white .auth-overlay {
  background: rgba(240, 242, 245, 0.85) !important;
}

body.theme-white .auth-box {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

body.theme-white .auth-box__logo .logo-text {
  color: #1e293b !important;
}

body.theme-white .auth-tabs {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.03) !important;
}

body.theme-white .auth-tab {
  color: #64748b !important;
}

body.theme-white .auth-tab.active {
  color: #fff !important;
}

body.theme-white .auth-input-wrapper input {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #1e293b !important;
}

body.theme-white .auth-input-wrapper input:focus {
  border-color: var(--color-blue) !important;
  background: #fff !important;
}

body.theme-white .auth-label {
  color: #475569 !important;
}
.admin-tab.active {
  background: var(--color-blue) !important;
  color: #fff !important;
}

.admin-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-card__title {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: space-between;
}
.admin-card__body {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.4;
}
.admin-card__actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.btn-admin-action {
  flex: 1;
  border: none;
  padding: 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.btn-admin-action.approve {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #2ecc71;
}
.btn-admin-action.reject {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}
.btn-admin-action.approve:hover {
  background: #2ecc71;
  color: #fff;
}
.btn-admin-action.reject:hover {
  background: #e74c3c;
  color: #fff;
}

/* ==========================================
   5. STANDALONE ADMIN DASHBOARD UI
   ========================================== */
.admin-dashboard {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0c0e16;
  color: #e2e8f0;
  display: flex;
  z-index: 9999;
  font-family: var(--font-main);
}

/* Sidebar Styling */
.admin-sidebar {
  width: 260px;
  background-color: #111422;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.admin-sidebar__logo {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
}

.admin-nav {
  flex: 1;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-item {
  background: none;
  border: none;
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.admin-nav-item svg {
  opacity: 0.7;
}

.admin-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
  color: #fff;
}

.admin-nav-item.active {
  background-color: rgba(2, 111, 211, 0.08);
  color: var(--color-blue);
  font-weight: 600;
}

.admin-nav-item.active svg {
  opacity: 1;
  stroke: var(--color-blue);
}

.admin-sidebar__footer {
  padding: 20px 14px;
  border-top: 1px solid var(--border-color);
}

.btn-admin-logout {
  width: 100%;
  background: rgba(255, 92, 106, 0.05);
  border: 1px solid rgba(255, 92, 106, 0.15);
  color: var(--color-red);
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-admin-logout:hover {
  background: var(--color-red);
  color: #fff;
}

/* Main Content Area */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #0c0e16;
}

.admin-main-header {
  height: 70px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #111422;
}

.admin-header-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.admin-header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-blue);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.admin-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.admin-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.admin-role {
  font-size: 11px;
  color: var(--text-muted);
}

.admin-content-area {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

/* Panels */
.admin-panel {
  display: none;
  animation: fadeIn 0.25s ease;
}

.admin-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Metrics Cards Grid */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.metric-card {
  background: #111422;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, border-color 0.2s;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.1);
}

.metric-card__title {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-card__value {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  font-family: monospace;
}

.metric-card__value.highlight-yellow {
  color: var(--color-yellow);
}

.metric-card__value.highlight-blue {
  color: var(--color-blue);
}

.metric-card__desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Section Title */
.admin-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-top: 0;
  margin-bottom: 16px;
}

/* Tables Styling */
.admin-table-wrapper {
  background: #111422;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.admin-table th,
.admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.admin-table th {
  background: rgba(0, 0, 0, 0.15);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

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

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

/* Finance Tabs */
.finance-tab {
  transition: all 0.2s;
}

.finance-tab.active {
  background: rgba(2, 111, 211, 0.08) !important;
  color: var(--color-blue) !important;
}

.finance-panel {
  display: none;
}

.finance-panel.active {
  display: block;
}

/* Cards Grid (KYC & Finance) */
.admin-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* White Theme Overrides for Admin Dashboard */
body.theme-white .admin-dashboard {
  background-color: #f3f4f6 !important;
  color: #1f2937 !important;
}

body.theme-white .admin-sidebar {
  background-color: #ebedf2 !important;
  border-right-color: rgba(0, 0, 0, 0.08) !important;
}

body.theme-white .admin-sidebar__logo {
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

body.theme-white .admin-sidebar__logo .logo-text {
  color: #1f2937 !important;
}

body.theme-white .admin-nav-item {
  color: #4b5563 !important;
}

body.theme-white .admin-nav-item:hover {
  background-color: rgba(0, 0, 0, 0.02) !important;
}

body.theme-white .admin-nav-item.active {
  background-color: #ffffff !important;
  color: var(--color-blue) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.theme-white .btn-admin-logout {
  background-color: rgba(255, 92, 106, 0.08) !important;
  border-color: rgba(255, 92, 106, 0.15) !important;
}

body.theme-white .btn-admin-logout:hover {
  background-color: var(--color-red) !important;
  color: #fff !important;
}

body.theme-white .admin-main {
  background-color: #f3f4f6 !important;
}

body.theme-white .admin-main-header {
  background-color: #ffffff !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

body.theme-white .admin-header-title {
  color: #1f2937 !important;
}

body.theme-white .admin-name {
  color: #1f2937 !important;
}

body.theme-white .admin-user-info .admin-role {
  color: #6b7280 !important;
}

body.theme-white .metric-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

body.theme-white .metric-card:hover {
  border-color: rgba(0, 0, 0, 0.15) !important;
}

body.theme-white .metric-card__title {
  color: #6b7280 !important;
}

body.theme-white .metric-card__value {
  color: #1f2937 !important;
}

body.theme-white .metric-card__desc {
  color: #9ca3af !important;
}

body.theme-white .admin-section-title {
  color: #1f2937 !important;
}

body.theme-white .admin-table-wrapper {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

body.theme-white .admin-table th {
  background: rgba(0, 0, 0, 0.02) !important;
  color: #6b7280 !important;
}

body.theme-white .admin-table td {
  border-bottom-color: rgba(0, 0, 0, 0.04) !important;
  color: #4b5563 !important;
}

body.theme-white .admin-table tr:hover {
  background-color: rgba(0, 0, 0, 0.01) !important;
}

/* ==========================================================================
   Deposit Modal System Styles (PushinPay PIX)
   ========================================================================== */

.deposit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(12, 14, 22, 0.7);
  backdrop-filter: blur(10px);
  display: none; /* JS toggled */
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.deposit-modal.show {
  display: flex;
}
.deposit-modal__content {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color-active);
  border-radius: 14px;
  width: 440px;
  max-width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: modalSlideIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}
.deposit-modal__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.deposit-modal__header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.deposit-modal__close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.deposit-modal__close:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}
.deposit-modal__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 80vh;
  overflow-y: auto;
}

/* Legal Warning box required by PushinPay terms */
.deposit-legal-disclaimer {
  font-size: 10.5px;
  line-height: 1.4;
  color: #eab308;
  background: rgba(234, 179, 8, 0.06);
  border: 1px solid rgba(234, 179, 8, 0.15);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.deposit-legal-disclaimer svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Balance display card inside deposit */
.deposit-info-card {
  background: linear-gradient(135deg, rgba(28, 31, 45, 0.6) 0%, rgba(21, 24, 35, 0.8) 100%);
  border: 1px solid var(--border-color-active);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.deposit-info-label {
  font-size: 11px;
  color: var(--text-muted);
}
.deposit-info-value {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* Form inputs & buttons */
.deposit-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.deposit-form-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.deposit-amount-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 12px;
  height: 44px;
  transition: all 0.2s ease;
}
.deposit-amount-input-box:focus-within {
  border-color: var(--color-blue);
  background-color: rgba(255, 255, 255, 0.05);
}
.deposit-currency-prefix {
  font-size: 14px;
  color: var(--text-muted);
  margin-right: 6px;
  font-weight: 600;
}
.deposit-amount-input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-main);
  font-size: 15px;
  outline: none;
  width: 100%;
}

/* Quick presets buttons */
.deposit-presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.btn-deposit-preset {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-deposit-preset:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-blue);
}

.btn-deposit-submit {
  background: var(--color-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.btn-deposit-submit:hover:not(:disabled) {
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(0, 149, 255, 0.3);
}
.btn-deposit-submit:disabled {
  background-color: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Checkout state (QR code view) */
.deposit-checkout {
  display: none; /* Dynamic show */
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  animation: fadeIn 0.25s ease;
}
.deposit-checkout.show {
  display: flex;
}
.deposit-qr-wrapper {
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
}
.deposit-qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.deposit-status-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #eab308;
  font-weight: 600;
}
.deposit-status-pulse::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: #eab308;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px #eab308; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.deposit-copy-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.deposit-copy-container {
  display: flex;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px;
}
.deposit-pix-code-input {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: monospace;
  font-size: 11px;
  padding: 8px;
  outline: none;
  width: 100%;
  resize: none;
  height: 36px;
  line-height: 1.2;
}
.btn-deposit-copy {
  background: var(--color-blue);
  border: none;
  color: #fff;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-deposit-copy:hover {
  opacity: 0.9;
}

.btn-deposit-back {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}
.btn-deposit-back:hover {
  color: #fff;
  border-color: var(--border-color-active);
  background-color: rgba(255,255,255,0.02);
}

/* Light Theme support override */
body.theme-white .deposit-modal {
  background-color: rgba(243, 244, 246, 0.7);
}
body.theme-white .deposit-modal__content {
  background-color: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
body.theme-white .deposit-modal__header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
body.theme-white .deposit-modal__header h3 {
  color: #1f2937;
}
body.theme-white .deposit-modal__close {
  color: #6b7280;
}
body.theme-white .deposit-modal__close:hover {
  color: #1f2937;
  background-color: rgba(0, 0, 0, 0.03);
}
body.theme-white .deposit-info-card {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-color: rgba(0, 0, 0, 0.08);
}
body.theme-white .deposit-info-value {
  color: #1f2937;
}
body.theme-white .deposit-amount-input-box {
  background-color: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}
body.theme-white .deposit-amount-input-box:focus-within {
  border-color: var(--color-blue);
  background-color: rgba(0, 0, 0, 0.04);
}
body.theme-white .deposit-amount-input {
  color: #1f2937;
}
body.theme-white .btn-deposit-preset {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: #4b5563;
}
body.theme-white .btn-deposit-preset:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--color-blue);
  color: #1f2937;
}
body.theme-white .deposit-copy-container {
  background-color: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}
body.theme-white .deposit-pix-code-input {
  color: #4b5563;
}
body.theme-white .btn-deposit-back {
  border-color: rgba(0, 0, 0, 0.08);
  color: #6b7280;
}
body.theme-white .btn-deposit-back:hover {
  color: #1f2937;
  background-color: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.15);
}

/* --- Premium Toast Notifications (Fase 2) --- */
#custom-toast-container {
  position: fixed;
  bottom: 24px;
  right: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10000;
  max-width: 340px;
  width: calc(100% - 40px);
  pointer-events: none;
}

.custom-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(28, 31, 45, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
  width: 100%;
  box-sizing: border-box;
}

.custom-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.custom-toast.hide {
  transform: translateX(120%);
  opacity: 0;
}

.custom-toast__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-toast.success {
  border-left: 4px solid var(--color-green);
  border-color: rgba(9, 196, 128, 0.15);
}
.custom-toast.success .custom-toast__icon {
  background-color: rgba(9, 196, 128, 0.12);
  color: var(--color-green);
}

.custom-toast.error {
  border-left: 4px solid var(--color-red);
  border-color: rgba(255, 92, 106, 0.15);
}
.custom-toast.error .custom-toast__icon {
  background-color: rgba(255, 92, 106, 0.12);
  color: var(--color-red);
}

.custom-toast.warning {
  border-left: 4px solid var(--color-yellow);
  border-color: rgba(241, 196, 15, 0.15);
}
.custom-toast.warning .custom-toast__icon {
  background-color: rgba(241, 196, 15, 0.12);
  color: var(--color-yellow);
}

.custom-toast.info {
  border-left: 4px solid var(--color-blue);
  border-color: rgba(52, 152, 219, 0.15);
}
.custom-toast.info .custom-toast__icon {
  background-color: rgba(52, 152, 219, 0.12);
  color: var(--color-blue);
}

.custom-toast__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-grow: 1;
}

.custom-toast__title {
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
}

.custom-toast__desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.custom-toast__close {
  cursor: pointer;
  color: var(--text-muted);
  opacity: 0.5;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  flex-shrink: 0;
  margin-top: -2px;
}

.custom-toast__close:hover {
  opacity: 1;
}

/* Adjust toast position on smaller screens */
@media (max-width: 768px) {
  #custom-toast-container {
    right: 20px;
    bottom: 20px;
  }
}


