/* 
 * AUREXION PRIME Trading & Member Portal Stylesheet
 * High-fidelity responsive dark fintech theme
 */

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

:root {
  --bg-dark: #0a0e17;
  --bg-card: rgba(16, 23, 38, 0.88);
  --bg-card-border: rgba(255, 255, 255, 0.1);
  --primary-gold: #f59e0b;
  --primary-gold-hover: #d97706;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --text-main: #f3f4f6;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --input-bg: rgba(15, 23, 42, 0.75);
  --input-border: rgba(51, 65, 85, 0.8);
  --input-focus: #f59e0b;
  --sidebar-w: 260px;
}

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

body {
  font-family: 'Outfit', 'Roboto', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 20%, #17223b 0%, #0a0e17 80%);
}

a {
  color: var(--primary-gold);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #fbbf24;
  text-decoration: underline;
}

/* Background Particle Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: auto;
}

/* Auth Page Layout (Matching charoen22-fs.com fxt-template-layout28) */
.fxt-template-layout28 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 15px;
  z-index: 1;
}

.fxt-content {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.08);
  border-radius: 16px;
  padding: 40px 35px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.fxt-content.wide {
  max-width: 640px;
}

/* Brand Header */
.fxt-header {
  text-align: center;
  margin-bottom: 30px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-decoration: none;
}

.brand-img-logo {
  height: 48px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.3));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-img-logo:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 4px 16px rgba(245, 158, 11, 0.5));
}

.dash-navbar .brand-img-logo {
  height: 38px;
  max-width: 200px;
  margin-bottom: 0;
}

.brand-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.brand-logo-text {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffffff 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-top: -4px;
}

/* Nav Switcher (Login / Register / Forgot Password) */
.fxt-switcher-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  padding: 4px;
  margin: 0 auto;
}

.fxt-switcher-wrap li {
  flex: 1;
}

.fxt-switcher-wrap .switcher-text {
  display: block;
  text-align: center;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 25px;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.fxt-switcher-wrap .switcher-text:hover {
  color: #fff;
  text-decoration: none;
}

.fxt-switcher-wrap .switcher-text.active {
  background: linear-gradient(135deg, var(--primary-gold), #d97706);
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* Subtitle & Form Intro */
.fxt-form-title {
  text-align: center;
  margin-bottom: 25px;
}

.fxt-form-title h2 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.fxt-form-title p {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Form Groups & Inputs */
.form-group {
  margin-bottom: 18px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-label span.req {
  color: var(--accent-red);
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.25s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  background: rgba(15, 23, 42, 0.95);
}

.form-control:disabled,
.form-control[readonly] {
  background: rgba(30, 41, 59, 0.5);
  color: #94a3b8;
  cursor: not-allowed;
  border-color: rgba(51, 65, 85, 0.4);
}

.input-wrapper .field-icon {
  position: absolute;
  right: 14px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}

.input-wrapper .field-icon:hover {
  color: var(--primary-gold);
}

/* Country & Phone row */
.phone-row {
  display: flex;
  gap: 10px;
}

.country-select {
  flex: 0 0 130px;
}

.phone-input {
  flex: 1;
}

/* Checkbox & Options */
.fxt-checkbox-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  margin: 18px 0 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary-gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Primary Button */
.fxt-btn-fill {
  width: 100%;
  padding: 13px 24px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fxt-btn-fill:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.45);
}

.fxt-btn-fill:active {
  transform: translateY(0);
}

.fxt-btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: #cbd5e1;
}

.fxt-btn-secondary:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #fff;
}

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

/* Terms Box */
.terms-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 20px;
  max-height: 380px;
  overflow-y: auto;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.terms-box h3 {
  color: #fff;
  margin: 15px 0 6px;
  font-size: 15px;
}

.terms-box p {
  margin-bottom: 12px;
}

/* Quick Demo Bar */
.demo-bar {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.demo-bar p {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.btn-demo-login {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-demo-login:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #fff;
}

/* Alert / Toast Notification */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #1e293b;
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  border-left: 4px solid var(--primary-gold);
  min-width: 280px;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: slideIn 0.3s ease;
  font-size: 13.5px;
}

.toast.success { border-left-color: var(--accent-green); }
.toast.error { border-left-color: var(--accent-red); }
.toast.info { border-left-color: var(--accent-cyan); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* =================================================================
   TRADING & MEMBER PORTAL STYLES (DASHBOARD)
   ================================================================= */
.dashboard-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Top Navbar */
.dash-navbar {
  height: 64px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.dash-nav-left {
  display: flex;
  align-items: center;
  gap: 25px;
}

.dash-nav-left .brand-logo {
  margin-bottom: 0;
}

.market-ticker-bar {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12.5px;
  overflow-x: auto;
  max-width: 550px;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.6);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.ticker-item .symbol {
  font-weight: 600;
  color: #fff;
}

.ticker-item .price {
  font-family: 'JetBrains Mono', monospace;
}

.ticker-item .change.up { color: var(--accent-green); }
.ticker-item .change.down { color: var(--accent-red); }

.dash-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.balance-pill {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.balance-pill.is-demo,
.balance-pill.is-real {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.balance-pill .label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.balance-pill .amount {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--primary-gold);
  font-size: 14px;
}

.btn-nav-action {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-deposit {
  background: var(--accent-green);
  color: #fff;
}
.btn-deposit:hover { background: #059669; }

.btn-withdraw {
  background: rgba(51, 65, 85, 0.8);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-withdraw:hover { background: #475569; }

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Dashboard Navigation Tabs */
.dash-tabs {
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 24px;
  display: flex;
  gap: 20px;
}

.dash-tab-btn {
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-tab-btn:hover {
  color: #fff;
}

.dash-tab-btn.active {
  color: var(--primary-gold);
  border-bottom-color: var(--primary-gold);
}

/* Dashboard Body Container */
.dash-container {
  flex: 1;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

/* Chart & Terminal Section */
.chart-card {
  background: rgba(16, 23, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chart-header {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.4);
}

.pair-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pair-select {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  outline: none;
}

.live-price-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.live-price-display .price-val {
  font-size: 18px;
  font-weight: 700;
}

.timeframe-group {
  display: flex;
  gap: 4px;
}

.tf-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.tf-btn.active, .tf-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  color: var(--primary-gold);
  border-color: var(--primary-gold);
}

.chart-canvas-container {
  position: relative;
  height: 460px;
  width: 100%;
  background: #000000;
}

.tv-chart-card {
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.tv-pair-header {
  padding: 6px 8px;
  background: #05070a;
  border-bottom: 1px solid #161d2a;
  display: block;
}

.tv-pair-select {
  width: 100%;
  background-color: #161b26;
  border: 1px solid #2b4c7e;
  border-radius: 6px;
  color: #e2e8f0;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.tv-pair-select:focus,
.tv-pair-select:hover {
  border-color: #3b82f6;
}

.tv-pair-select option {
  background-color: #0f172a;
  color: #ffffff;
}

.tv-widget-wrapper {
  height: 480px;
  min-height: 460px;
  flex: 1;
  background: #000000;
}

#tradingview_chart iframe {
  border: none !important;
}

#candlestick-chart {
  width: 100%;
  height: 100%;
  display: block;
}

/* Order Execution Box */
.order-card {
  background: rgba(16, 23, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-tabs {
  display: flex;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.8);
  padding: 3px;
}

.order-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.order-tab.active {
  background: var(--primary-gold);
  color: #fff;
}

.order-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.order-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.btn-trade-call {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.2s;
}

.btn-trade-call:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-trade-put {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
  transition: all 0.2s;
}

.btn-trade-put:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-trade-call small, .btn-trade-put small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.9;
}

/* History / Active Orders Table */
.table-card {
  grid-column: 1 / -1;
  background: rgba(16, 23, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
}

.table-card h3 {
  font-size: 16px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.custom-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
}

.custom-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge.success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge.danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge.warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

/* Network / Referral View */
.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.stat-box {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
}

.stat-box .title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-box .val {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

/* Modal Windows */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 90%;
  max-width: 480px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 18px;
  color: #fff;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
}

.qr-placeholder {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  display: inline-block;
  margin: 15px auto;
  text-align: center;
}

/* =================================================================
   MEMBER PORTAL CLEAN 2-TIER HEADER & MINI SIDEBAR
   ================================================================= */

.member-clean-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 102;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Tier 1: Dark Brand Bar with Centered Logo */
.member-top-brandbar {
  background: #232830;
  min-height: 76px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.member-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.member-top-logo {
  height: 54px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Tier 2: Gold/Orange Toolbar Bar */
.member-top-toolbar {
  background: #df9536;
  min-height: 60px;
  padding: 8px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.member-toolbar-left {
  display: flex;
  align-items: center;
  justify-self: start;
}

.member-toolbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.member-hamburger-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.member-hamburger-btn:hover {
  background: rgba(0, 0, 0, 0.12);
}

.member-toolbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 18px;
}

/* Dark Rounded Balance Box + Green "Real" Badge */
.member-balance-box {
  background: #353940;
  border-radius: 6px;
  padding: 6px 8px 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, background 0.2s ease;
}

.member-balance-box:hover {
  background: #3d424a;
}

.member-balance-box .val-balance {
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
}

.member-real-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #63c694;
  color: #132a1e;
  font-size: 13.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  line-height: 1.1;
}

/* Notification Bell Button with Red Dot */
.member-notif-btn {
  position: relative;
  background: transparent;
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.member-notif-btn:hover {
  opacity: 0.9;
}

.member-notif-btn .notif-dot {
  position: absolute;
  top: 2px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9534f;
  border: 2px solid #df9536;
}

/* Circular Gradient User Profile Avatar & Mini Dropdown Menu */
.member-profile-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.member-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #56d896 0%, #44b8d8 55%, #4a90e2 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: none;
  font-size: 18px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.member-header-avatar:hover {
  transform: scale(1.04);
}

.member-header-avatar svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

/* Mini Profile Popup Card (Matches Reference Image) */
.member-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: #23272d;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 12px 14px 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.member-profile-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mpd-top {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 11px;
}

.mpd-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #56d896 0%, #44b8d8 55%, #4a90e2 100%);
  border: 2px solid #353a40;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 22px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.mpd-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.mpd-avatar-large svg {
  width: 28px;
  height: 28px;
}

.mpd-user-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
}

.mpd-username {
  font-size: 13.5px;
  font-weight: 500;
  color: #cfd6de;
  line-height: 1.25;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 135px;
}

.mpd-fullname {
  font-size: 11px;
  font-weight: 400;
  color: #a8b1bd;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 135px;
}

.mpd-btn-view-profile {
  background: #e5987d;
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.15s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.mpd-btn-view-profile:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.mpd-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
  margin: 0;
}

.mpd-divider.bottom {
  margin-top: 4px;
}

.mpd-menu-list {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.mpd-menu-item {
  width: 100%;
  background: transparent;
  border: none;
  color: #a8b1bd;
  font-size: 13px;
  font-weight: 400;
  padding: 7px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  border-radius: 5px;
  transition: background 0.18s ease, color 0.18s ease;
}

.mpd-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.mpd-menu-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  flex-shrink: 0;
}

.mpd-menu-icon svg {
  width: 15px;
  height: 15px;
}

.mpd-menu-item:hover .mpd-menu-icon {
  color: #ffffff;
}

.dash-body-wrap {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 136px);
  position: relative;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(3px);
  z-index: 95;
}

.sidebar-backdrop.active {
  display: block;
}

.member-mini-sidebar {
  width: 72px;
  background: rgba(11, 17, 32, 0.96);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: width 0.26s cubic-bezier(0.4, 0, 0.2, 1), transform 0.26s ease;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 98;
  flex-shrink: 0;
  user-select: none;
  scrollbar-width: thin;
}

/* Expand on hover (desktop) or when .expanded is toggled */
.member-mini-sidebar:hover,
.member-mini-sidebar.expanded {
  width: 244px;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.45);
}

.side-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.2s;
  min-height: 68px;
}

.side-user-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.side-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  font-size: 16px;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.side-user-info {
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  overflow: hidden;
}

.member-mini-sidebar:hover .side-user-info,
.member-mini-sidebar.expanded .side-user-info {
  opacity: 1;
  visibility: visible;
}

.side-user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  text-overflow: ellipsis;
  overflow: hidden;
}

.side-user-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #10b981;
  margin-top: 2px;
}

.side-user-status .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.side-nav-scroll {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-nav-group {
  display: flex;
  flex-direction: column;
}

.side-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  white-space: nowrap;
}

.side-nav-item:hover {
  background: rgba(30, 41, 59, 0.75);
  color: #f8fafc;
}

.side-nav-item.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.08));
  border-color: rgba(245, 158, 11, 0.38);
  color: #f59e0b;
}

.side-nav-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.side-nav-label {
  flex: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.side-chevron {
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.18s ease;
  flex-shrink: 0;
}

.member-mini-sidebar:hover .side-nav-label,
.member-mini-sidebar.expanded .side-nav-label,
.member-mini-sidebar:hover .side-chevron,
.member-mini-sidebar.expanded .side-chevron {
  opacity: 1;
  visibility: visible;
}

.side-nav-group.open .side-chevron {
  transform: rotate(180deg);
}

/* Submenu items inside Setting, Trade, Wallet */
.side-sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.26s ease, padding 0.2s ease;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.member-mini-sidebar:hover .side-nav-group.open .side-sub-menu,
.member-mini-sidebar.expanded .side-nav-group.open .side-sub-menu {
  max-height: 200px;
  padding-top: 4px;
  padding-bottom: 6px;
}

.side-sub-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  border-left: 2px solid rgba(148, 163, 184, 0.2);
  background: transparent;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  white-space: nowrap;
}

.side-sub-item:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
  border-left-color: #94a3b8;
}

.side-sub-item.active {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border-left-color: #f59e0b;
  font-weight: 600;
}

.side-sub-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.side-nav-footer {
  padding: 12px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.side-logout-item {
  color: #f87171;
}

.side-logout-item:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* Main Content Area next to Mini Sidebar */
.dash-main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Dashboard Overview Quick Stats Bar */
.dashboard-overview-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px 24px 0;
}

.dash-mini-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dms-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.dms-label {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
}

.dms-val {
  font-size: 15.5px;
  font-weight: 700;
  color: #f8fafc;
  margin-top: 2px;
}

/* Wallet Action Cards */
.wallet-cards-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.wallet-action-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.withdraw-balance-green {
  color: #10b981 !important;
  -webkit-text-fill-color: #10b981 !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  opacity: 1 !important;
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.wallet-action-card.highlight-focus,
.setting-card.highlight-focus {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.14);
}

.wac-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.wac-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 4px;
}

.wac-header p {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.45;
}

.wac-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wac-icon.deposit-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.wac-icon.withdraw-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.wac-balance-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #94a3b8;
}

/* Setting Single-Panel Centered Layout (Profil & Profil Image Separated) */
.setting-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.setting-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.avatar-editor-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px 8px;
}

.avatar-preview-large {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border: 3px solid rgba(245, 158, 11, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: #000;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.avatar-preview-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-preset-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.avatar-preset-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.8);
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.avatar-preset-btn:hover {
  transform: translateY(-2px);
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.18);
}

/* =================================================================
   ADAPTIVE MULTI-DEVICE RESPONSIVE SYSTEM (WEB / TABLET / MOBILE)
   ================================================================= */

/* Ensure tables scroll smoothly horizontally on smaller viewports */
.table-card {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.custom-table {
  min-width: 540px;
}

/* 1. TABLET / TAB MODE (641px - 1024px or html.device-tablet) */
@media (max-width: 1024px) {
  .fxt-template-layout28 {
    padding: 28px 16px;
  }

  .fxt-content {
    max-width: 460px;
    padding: 34px 28px;
  }

  .fxt-content.wide {
    max-width: 580px;
  }

  .dash-navbar {
    height: auto;
    min-height: 64px;
    padding: 10px 18px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .dash-nav-left {
    gap: 14px;
  }

  .market-ticker-bar {
    display: none;
  }

  .dash-nav-right {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .dash-tabs {
    padding: 0 16px;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .dash-tab-btn {
    padding: 11px 14px;
    font-size: 13.5px;
    flex-shrink: 0;
  }

  .dash-container {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }

  .tv-widget-wrapper {
    height: 430px;
    min-height: 400px;
  }

  .order-card {
    padding: 18px;
  }

  .network-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .dashboard-overview-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 14px 16px 0;
    gap: 12px;
  }

  .wallet-cards-grid,
  .setting-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* 2. MOBILE / SELULER MODE (<= 640px or html.device-mobile) */
@media (max-width: 640px) {
  .fxt-template-layout28 {
    padding: 16px 12px;
    align-items: center;
  }

  .brand-logo {
    margin-bottom: 12px;
  }

  .brand-img-logo {
    height: 36px;
    max-width: 175px;
  }

  .fxt-content,
  .fxt-content.wide {
    max-width: 100%;
    padding: 24px 18px;
    border-radius: 14px;
  }

  .fxt-header {
    margin-bottom: 20px;
  }

  .fxt-switcher-wrap {
    border-radius: 22px;
    padding: 3px;
  }

  .fxt-switcher-wrap .switcher-text {
    padding: 7px 8px;
    font-size: 12px;
  }

  .fxt-form-title {
    margin-bottom: 18px;
  }

  .fxt-form-title h2 {
    font-size: 18px;
  }

  .fxt-form-title p {
    font-size: 12.5px;
  }

  .form-control {
    padding: 11px 14px;
    font-size: 14px;
  }

  .fxt-checkbox-area {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12.5px;
    margin: 14px 0 18px;
  }

  .fxt-btn-fill {
    padding: 12px 18px;
    font-size: 14px;
  }

  /* Member Clean 2-Tier Header Mobile Adjustments */
  .member-top-brandbar {
    min-height: 64px;
    padding: 8px 14px;
  }

  .member-top-logo {
    height: 46px;
    max-width: 200px;
  }

  .member-top-toolbar {
    min-height: 54px;
    padding: 6px 14px;
    gap: 10px;
  }

  .member-toolbar-right {
    gap: 12px;
  }

  .member-balance-box {
    padding: 5px 6px 5px 11px;
    gap: 9px;
  }

  .member-balance-box .val-balance {
    font-size: 16px;
  }

  .member-real-badge {
    font-size: 12px;
    padding: 3px 8px;
  }

  .member-header-avatar {
    width: 34px;
    height: 34px;
  }

  .member-profile-dropdown {
    width: 215px;
    right: -2px;
    padding: 10px 12px 8px;
  }

  /* Dashboard Tabs Mobile */
  .dash-tabs {
    padding: 0 10px;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dash-tabs::-webkit-scrollbar {
    display: none;
  }

  .dash-tab-btn {
    padding: 10px 12px;
    font-size: 12.5px;
  }

  /* Trading Section Mobile */
  .dash-container {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 12px;
  }

  .tv-pair-header {
    padding: 6px;
  }

  .tv-pair-select {
    padding: 9px 12px;
    font-size: 13.5px;
  }

  .chart-canvas-container,
  .tv-widget-wrapper {
    height: 360px;
    min-height: 340px;
  }

  .order-card {
    padding: 14px;
    gap: 12px;
  }

  .order-actions {
    gap: 10px;
    margin-top: 4px;
  }

  .btn-trade-call,
  .btn-trade-put {
    padding: 12px 10px;
    font-size: 14.5px;
  }

  /* Network & History Sections Mobile */
  #section-network,
  #section-history,
  #section-profits,
  #section-wallet,
  #section-setting {
    padding: 12px !important;
  }

  .dashboard-overview-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px 10px 0;
    gap: 8px;
  }

  .dash-mini-stat {
    padding: 10px 12px;
    gap: 8px;
  }

  .dms-icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .dms-val {
    font-size: 13.5px;
  }

  /* Mobile Off-Canvas Drawer for Mini Sidebar */
  .member-mini-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 256px !important;
    transform: translateX(-100%);
    z-index: 105;
    box-shadow: 12px 0 32px rgba(0, 0, 0, 0.7);
  }

  .member-mini-sidebar.expanded {
    transform: translateX(0);
  }

  .member-mini-sidebar .side-user-info,
  .member-mini-sidebar .side-nav-label,
  .member-mini-sidebar .side-chevron {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .member-mini-sidebar .side-nav-group.open .side-sub-menu {
    max-height: 220px;
    padding-top: 4px;
    padding-bottom: 6px;
  }

  .network-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }

  .stat-box {
    padding: 14px 16px;
  }

  .stat-box .val {
    font-size: 20px;
  }

  .table-card {
    padding: 14px 12px;
  }

  .table-card h3 {
    font-size: 14.5px;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Modals & Toasts Mobile */
  .modal-card {
    width: 94%;
    padding: 20px 16px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .toast-container {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .toast {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    font-size: 12.5px;
  }
}

@keyframes pulseLang {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 10px 4px rgba(245, 158, 11, 0.4); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.pulse-lang {
  animation: pulseLang 0.5s ease;
}
.lang-pill, .currency-lang-pill, .val-lang-badge, .val-currency-badge {
  display: none !important;
}

/* =========================================================
   ENHANCED SIDEBAR MINI ICON COLORS & GLOW ACCENTS
   ========================================================= */
#member-mini-sidebar [data-side-nav="dashboard"] .side-nav-icon {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 9px;
}

#member-mini-sidebar [data-side-group="setting"] .side-nav-icon {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.14);
  border: 1px solid rgba(192, 132, 252, 0.28);
  border-radius: 9px;
}

#member-mini-sidebar [data-side-nav="setting-profile"] .side-sub-icon {
  color: #c084fc;
}

#member-mini-sidebar [data-side-nav="setting-avatar"] .side-sub-icon {
  color: #38bdf8;
}

#member-mini-sidebar [data-side-group="trade"] .side-nav-icon {
  color: #34d399;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 9px;
}

#member-mini-sidebar [data-side-nav="trading"] .side-sub-icon {
  color: #34d399;
}

#member-mini-sidebar [data-side-nav="history"] .side-sub-icon {
  color: #fbbf24;
}

#member-mini-sidebar [data-side-group="wallet"] .side-nav-icon {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 9px;
}

#member-mini-sidebar #btn-sidebar-logout .side-nav-icon {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.28);
  border-radius: 9px;
}

/* =========================================================
   TRADE HISTORY CLICKABLE WIN/LOSS, CHIPS & DETAIL MODAL
   ========================================================= */
.history-row-clickable {
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.15s ease;
}

.history-row-clickable:hover {
  background-color: rgba(56, 189, 248, 0.06);
}

.order-id-chip {
  display: inline-block;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.24);
  padding: 3px 8px;
  border-radius: 6px;
}

.pair-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 3px 9px;
  border-radius: 6px;
}

.trade-dir-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.trade-dir-pill.is-call {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.trade-dir-pill.is-put {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.pnl-val-chip {
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.pnl-val-chip.is-profit {
  color: #34d399;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.pnl-val-chip.is-loss {
  color: #fb7185;
  text-shadow: 0 0 12px rgba(244, 63, 94, 0.25);
}

.countdown-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.32);
  padding: 3px 9px;
  border-radius: 999px;
}

.trade-result-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trade-result-btn .btn-detail-arrow {
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.trade-result-btn:hover .btn-detail-arrow {
  transform: scale(1.15);
  opacity: 1;
}

.trade-result-btn.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.32) 100%);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.15);
}

.trade-result-btn.success:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #042f2e;
  border-color: #34d399;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.38);
}

.trade-result-btn.danger {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.22) 0%, rgba(225, 29, 72, 0.32) 100%);
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.45);
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.15);
}

.trade-result-btn.danger:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  border-color: #fb7185;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(244, 63, 94, 0.38);
}

/* Modal Detail Hasil Trading */
.td-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(59, 130, 246, 0.28));
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.trade-detail-banner {
  position: relative;
  border-radius: 14px;
  padding: 20px 16px 18px;
  text-align: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.trade-detail-banner.is-win {
  background: radial-gradient(circle at top, rgba(16, 185, 129, 0.28), rgba(6, 78, 59, 0.22) 70%);
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px rgba(16, 185, 129, 0.14);
}

.trade-detail-banner.is-loss {
  background: radial-gradient(circle at top, rgba(244, 63, 94, 0.28), rgba(136, 19, 55, 0.22) 70%);
  border-color: rgba(251, 113, 133, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px rgba(244, 63, 94, 0.14);
}

.td-hero-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trade-detail-banner.is-win .td-hero-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1.5px solid rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.trade-detail-banner.is-loss .td-hero-icon {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1.5px solid rgba(251, 113, 133, 0.5);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.35);
}

.trade-detail-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.trade-detail-banner.is-win .trade-detail-status-pill {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #022c22;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
}

.trade-detail-banner.is-loss .trade-detail-status-pill {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(244, 63, 94, 0.35);
}

.trade-detail-pnl {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.trade-detail-banner.is-win .trade-detail-pnl {
  color: #34d399;
  text-shadow: 0 2px 14px rgba(16, 185, 129, 0.35);
}

.trade-detail-banner.is-loss .trade-detail-pnl {
  color: #fb7185;
  text-shadow: 0 2px 14px rgba(244, 63, 94, 0.35);
}

.trade-detail-sub {
  font-size: 12.5px;
  color: #cbd5e1;
  margin-top: 5px;
}

.trade-detail-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.trade-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}

.trade-detail-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.trade-detail-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 500;
}

.td-row-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.td-row-icon.ic-cyan {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.26);
}

.td-row-icon.ic-amber {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.26);
}

.td-row-icon.ic-purple {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.14);
  border: 1px solid rgba(192, 132, 252, 0.26);
}

.td-row-icon.ic-emerald {
  color: #34d399;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.26);
}

.td-row-icon.ic-blue {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.26);
}

.td-row-icon.ic-slate {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.26);
}

.trade-detail-val {
  color: #f8fafc;
  font-weight: 700;
  text-align: right;
}



