/* ==========================================================================
   StarX Option Mobile Web / PWA — Institutional Dark Theme Stylesheet
   ========================================================================== */

:root {
  --bg-main: #131722;
  --bg-surface: #1e222d;
  --bg-card: #242938;
  --bg-elevated: #2a2e39;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #38bdf8;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --color-green: #10b981;
  --color-red: #f43f5e;
  --color-cyan: #38bdf8;
  --color-amber: #f59e0b;
  
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #f1f5f9;
  --bg-elevated: #e2e8f0;
  --border-color: #cbd5e1;
  --border-focus: #0284c7;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
}

html[data-theme="twilight"],
html[data-theme="midnight"] {
  --bg-main: #131826;
  --bg-surface: #1a2236;
  --bg-card: #1f2a40;
  --bg-elevated: #283754;
  --border-color: #2b3952;
  --border-focus: #38bdf8;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
}

body.performance-mode * {
  box-shadow: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html, body {
  box-sizing: border-box;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
}

/* 1. Header */
header.mobile-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding-top: max(4px, env(safe-area-inset-top));
  z-index: 20;
  max-width: 100vw;
  box-sizing: border-box;
  min-height: 44px;
  overflow: hidden;
  gap: 4px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-cyan);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-left-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mobile-header-logo {
  height: 21px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  display: block;
}

.brand-row span { color: var(--text-primary); }

.badge-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  padding: 2px 7px;
  height: 21px;
  border-radius: 999px;
  font-weight: 750;
  cursor: pointer;
  letter-spacing: 0.2px;
  white-space: nowrap;
  box-sizing: border-box;
  user-select: none;
  transition: all 0.2s ease;
}
.badge-mode.live {
  background: rgba(16, 185, 129, 0.18);
  color: var(--color-green);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.badge-mode.demo {
  background: rgba(245, 158, 11, 0.18);
  color: var(--color-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.header-right-cluster {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.mobile-header-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  min-width: 29px;
  min-height: 29px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fbbf24;
  font-size: 0.90rem;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  user-select: none;
}
.mobile-header-bell:active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.35);
  transform: scale(0.95);
}
.mobile-header-bell.notification-command.unread {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}
.header-bell-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 7px;
  background: #ef4444;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.header-bell-badge[hidden] {
  display: none !important;
}

.header-balance-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  cursor: pointer;
  user-select: none;
  line-height: 1.15;
}
.balance-label {
  font-size: 0.52rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
  margin: 0 0 1px 0;
}
.balance-value {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--color-green);
  font-family: var(--font-mono);
  line-height: 1.1;
  letter-spacing: -0.2px;
  margin: 0;
}
.header-bonus-value { color: var(--color-amber); font-size: 0.60rem; font-weight: 700; margin-top: 1px; }

.mobile-header-guest-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(135deg, #10b981 0%, #059669 60%, #047857 100%);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.45);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.2px;
  user-select: none;
  transition: all 0.15s ease;
  animation: pulse-glow-mobile-cta 2.2s infinite ease-in-out;
}
.mobile-header-guest-cta:active {
  transform: scale(0.95);
}
@keyframes pulse-glow-mobile-cta {
  0%, 100% { box-shadow: 0 0 6px rgba(16, 185, 129, 0.35); transform: scale(1); }
  50% { box-shadow: 0 0 14px rgba(16, 185, 129, 0.7); transform: scale(1.03); }
}

.mobile-promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0369a1 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  color: #fff;
  z-index: 19;
}
.mobile-promo-banner[hidden] {
  display: none !important;
}
.mobile-promo-banner .promo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  flex: 1 1 auto;
  min-width: 0;
}
.mobile-promo-banner .promo-text-wrap strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-promo-banner .promo-text-wrap span {
  font-size: 0.65rem;
  color: #7dd3fc;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-promo-banner .promo-actions-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.mobile-promo-banner .btn-promo-claim {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.72rem;
  height: 28px;
  padding: 0 12px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.mobile-promo-banner .btn-promo-claim:active {
  transform: scale(0.96);
  opacity: 0.9;
}
.mobile-promo-banner .btn-promo-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-height: 24px;
  max-height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.mobile-promo-banner .btn-promo-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.mobile-promo-banner .btn-promo-close:active {
  transform: scale(0.9);
}

/* 2. Main View Container */
main.mobile-main-content {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
}

/* Chart Container */
.chart-view-section {
  flex: 1 1 0%;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-main);
  overflow: hidden;
}

/* View Panels (Trades, Wallet, Promotions, Profile) */
.view-panel {
  flex: 1 1 0%;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
}

.chart-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
  flex: 0 0 auto;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chart-top-bar::-webkit-scrollbar { display: none; }

.chart-top-left-cluster {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.inst-selector-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  height: 34px;
  min-height: 34px;
  box-sizing: border-box;
}
.selected-symbol-icon { display: inline-flex; width: 22px; height: 18px; flex: 0 0 auto; }
.selected-symbol-icon .instrument-svg { width: 22px; height: 18px; }

.btn-pair-info-icon {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  flex-shrink: 0;
}
.btn-pair-info-icon:active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.chart-tools-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.chart-tools-row > * { flex-shrink: 0; white-space: nowrap; }

.btn-chart-tool {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  cursor: pointer;
  height: 34px;
  min-height: 34px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-chart-stage {
  position: relative;
  flex: 1;
  min-height: 160px;
  overflow: hidden;
}

#mobile-chart-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.mobile-chart-mode-watermark {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: rgba(56, 189, 248, .045);
  font-size: clamp(3.5rem, 22vw, 8rem);
  font-weight: 900;
  letter-spacing: .14em;
  pointer-events: none;
  user-select: none;
}
.mobile-chart-mode-watermark.live { color: rgba(16, 185, 129, .05); }
.mobile-drawing-manager { display: flex; gap: 6px; overflow-x: auto; padding: 6px 10px; background: rgba(9,13,22,.94); border-bottom: 1px solid var(--border-color); scrollbar-width: none; }
.mobile-drawing-manager[hidden] { display: none; }
.drawing-manager-chip { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 3px 4px 3px 9px; border: 1px solid var(--border-color); border-radius: 999px; background: var(--bg-card); color: var(--text-secondary); font-size: .68rem; font-weight: 700; }
.drawing-manager-swatch { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.btn-inline-close-drawing, .btn-close-drawing { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(244,63,94,.12); color: #fecdd3; font-weight: 900; }
.mobile-market-provenance { display: none !important; }

/* 3. Bottom Order Controls */
.mobile-order-controls {
  flex: 0 0 auto;
  background: #090e17;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Order Controls Header Row: Asset Selector + Pending Trade Switch (10250.jpg) */
.order-controls-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 2px 2px;
}

.order-inst-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #f8fafc;
  text-align: left;
}

.bottom-symbol-icon {
  display: inline-flex;
  width: 26px;
  height: 20px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bottom-symbol-icon .instrument-svg {
  width: 26px;
  height: 20px;
}

.bottom-symbol-text {
  font-size: 0.88rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
  max-width: 135px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-payout-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f59e0b;
}

.bottom-arrow {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-left: -1px;
}

.pending-toggle-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.pending-toggle-text {
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.pending-toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
}

.pending-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.pending-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #1e293b;
  border: 1px solid #334155;
  transition: 0.2s;
  border-radius: 999px;
}

.pending-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.pending-toggle-switch input:checked + .pending-slider {
  background-color: #0284c7;
  border-color: #38bdf8;
}

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

/* Inputs Row: Timer & Investment Outlined Boxes (10250.jpg) */
.controls-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.control-outlined-box {
  position: relative;
  background: #0d121c;
  border: 1px solid #222d3f;
  border-radius: 7px;
  min-height: 42px;
  padding: 5px 8px 3px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.15s ease;
}

.control-outlined-box:hover,
.control-outlined-box:focus-within {
  border-color: #38bdf8;
}

.timer-box {
  cursor: pointer;
}

.box-notch-label {
  position: absolute;
  top: -7px;
  left: 8px;
  background: #0d121c;
  padding: 0 4px;
  font-size: 0.60rem;
  font-weight: 700;
  color: #7b8b9f;
  letter-spacing: 0.02em;
  z-index: 1;
}

.control-box-val {
  font-size: 0.96rem;
  font-weight: 800;
  color: #f8fafc;
  text-align: center;
  line-height: 1.15;
}

.investment-box {
  cursor: default;
}

.investment-stepper-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.stake-step-btn {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #182232;
  border: 1px solid #2a374c;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.1s;
  flex-shrink: 0;
  padding: 0;
}

.stake-step-btn:active {
  background: #2b3952;
  transform: scale(0.92);
}

.investment-val-display {
  flex: 1;
  text-align: center;
  cursor: pointer;
}

.investment-switch-link {
  display: block;
  margin: -2px auto -1px;
  background: none;
  border: none;
  font-size: 0.58rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 1px 3px;
}

.investment-switch-link:hover {
  text-decoration: underline;
}

/* Payout Dotted Row (10250.jpg) */
.payout-dotted-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 2px;
  margin-top: -1px;
}

.payout-dotted-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #718299;
}

.payout-dotted-line {
  flex: 1;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.18);
  margin: 0 8px;
  transform: translateY(-1px);
}

.payout-dotted-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: #f8fafc;
}

/* Action Buttons: Up and Down (10250.jpg) */
.trade-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1px;
  touch-action: manipulation;
}

.btn-trade {
  height: 50px;
  min-height: 50px;
  border-radius: 8px;
  border: none;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.03s ease, filter 0.05s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.btn-trade:active,
.btn-trade.tap-active {
  transform: scale(0.95);
  filter: brightness(1.2);
}

.btn-trade.executing {
  filter: saturate(0.85);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.btn-trade-up,
.btn-trade-call {
  background: #00b074 !important;
  color: #ffffff !important;
}

.btn-trade-down,
.btn-trade-put {
  background: #f43f5e !important;
  color: #ffffff !important;
}

.trade-btn-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.trade-circle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

/* 4. Bottom Navigation Bar */
nav.mobile-bottom-nav {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #0b0f19;
  border-top: 1px solid var(--border-color);
  padding: 3px 0 2px;
  padding-bottom: max(3px, env(safe-area-inset-bottom));
  z-index: 30;
}

.nav-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.60rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 52px;
  min-height: 38px;
  justify-content: center;
}
.nav-tab-btn.active { color: var(--color-cyan); }
.nav-tab-icon { font-size: 1.0rem; }

/* 5. Drawers & Bottom Sheets */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-sheet {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-radius: 16px 16px 0 0;
  height: 85vh;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  overflow: hidden;
}
.mobile-drawer-overlay.open .mobile-drawer-sheet {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.drawer-title h3 { font-size: 1.1rem; color: var(--text-primary); }
.drawer-subtitle { font-size: 0.7rem; color: var(--text-muted); }
.drawer-close {
  background: var(--bg-card);
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
}

.drawer-list-content {
  flex: 1 1 0px;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.search-bar-row {
  padding: 12px 16px 6px;
  flex-shrink: 0;
}
.search-bar-row input { width: 100%; min-height: 44px; border: 1px solid var(--border-color); border-radius: 10px; outline: 0; background: #0b1220; color: var(--text-primary); padding: 0 12px; font-size: .78rem; }
.search-bar-row input:focus { border-color: var(--color-cyan); box-shadow: 0 0 0 3px rgba(56,189,248,.1); }
.search-bar-row input::placeholder { color: #64748b; }

#inst-category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 16px 10px;
  scrollbar-width: none;
  flex-shrink: 0;
  min-height: 52px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}
#inst-category-tabs::-webkit-scrollbar { display: none; }
#inst-category-tabs .cat-pill {
  flex: 0 0 auto;
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: #111827;
  color: #94a3b8;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .025em;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: all 0.15s ease;
}
#inst-category-tabs .cat-pill:hover {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}
#inst-category-tabs .cat-pill.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}
.instrument-row[hidden] { display: none !important; }
.btn-fav { min-width: 34px; min-height: 34px; }

/* Indicator Drawer Suite */
.ind-category-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 16px 8px;
  scrollbar-width: none;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}
.ind-category-tabs::-webkit-scrollbar { display: none; }
.ind-cat-pill {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: #111827;
  color: #94a3b8;
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: all 0.15s ease;
}
.ind-cat-pill:hover {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}
.ind-cat-pill.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}
.indicator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.indicator-row[hidden] {
  display: none !important;
}
.indicator-row.active {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.05);
}
.ind-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.ind-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.ind-color-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.ind-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}
.badge-ind-cat {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-cat-trend { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.badge-cat-volatility { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-cat-oscillator { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.badge-cat-volume { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.ind-params {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.btn-reset-ind {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-reset-ind:hover {
  background: rgba(244, 63, 94, 0.25);
}
.ind-active-count-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  margin-left: 4px;
}

/* 6. Utility & Component Styles */
.text-cyan { color: var(--color-cyan); }
.text-green { color: var(--color-green); }
.text-amber { color: var(--color-amber); }
.text-bold { font-weight: 700; }
.monospace { font-family: var(--font-mono); }

.inst-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-bottom: 24px;
}

.instrument-row {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  margin-bottom: 5px;
  gap: 10px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.instrument-row.selected {
  border-color: var(--color-cyan);
  background: rgba(56, 189, 248, 0.08);
}
.instrument-row .btn-fav {
  background: none;
  border: none;
  min-width: unset;
  min-height: unset;
  width: 18px;
  height: 18px;
  padding: 0;
  margin-right: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}
.instrument-row .btn-fav:hover {
  transform: scale(1.15);
}
.inst-icon-wrap {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.instrument-svg { width: 30px; height: 24px; flex: 0 0 auto; overflow: visible; }
.inst-info {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.inst-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.inst-symbol {
  font-weight: 700;
  font-size: 0.94rem;
  color: #f8fafc;
}
.inst-profit-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}
.profit-highlight {
  color: #f59e0b;
  font-weight: 700;
  font-size: 0.75rem;
}
.inst-meta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.inst-momentum {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.momentum-badge-circle {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.momentum-badge-circle svg {
  width: 6px !important;
  height: 7.2px !important;
  flex: 0 0 6px !important;
  display: block;
}
.inst-momentum.up .momentum-badge-circle {
  background: #05c46b;
}
.inst-momentum.down .momentum-badge-circle {
  background: #eb4d4b;
}
.momentum-value {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.01em;
}
.inst-momentum.up .momentum-value {
  color: #05c46b;
}
.inst-momentum.down .momentum-value {
  color: #eb4d4b;
}
.badge-otc { background: rgba(56, 189, 248, 0.15); color: var(--color-cyan); font-size: 0.65rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-left: 2px; }
.badge-otc.synthetic { white-space: normal; line-height: 1.25; color: #fbbf24; background: rgba(245,158,11,.12); }
.badge-real { background: rgba(16, 185, 129, 0.15); color: var(--color-green); font-size: 0.65rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-left: 2px; }
.inst-payout { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-left: 10px; font-size: 0.85rem; font-weight: 800; color: var(--color-green); }
.inst-payout small { color: var(--text-muted); font-size: .55rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }

/* Switch Slider */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background-color: #334155; transition: .2s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .2s; border-radius: 50%; }
input:checked + .slider { background-color: var(--color-cyan); }
input:checked + .slider:before { transform: translateX(20px); }

/* Position Card */
.active-position-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-top-row { display: flex; justify-content: space-between; align-items: center; }
.dir-badge { font-size: 0.7rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.badge-call { background: rgba(16, 185, 129, 0.2); color: var(--color-green); }
.badge-put { background: rgba(244, 63, 94, 0.2); color: var(--color-red); }
.card-stake { font-weight: 700; font-size: 0.95rem; font-family: var(--font-mono); }
.card-id-row { font-size: 0.7rem; color: var(--text-muted); }
.card-cid { font-family: var(--font-mono); color: var(--color-cyan); }
.card-grid-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 0.75rem; background: var(--bg-main); padding: 8px; border-radius: 6px; }
.metric-label { color: var(--text-muted); display: block; font-size: 0.65rem; }
.metric-val { font-weight: 700; font-family: var(--font-mono); }
.btn-cashout-quote {
  width: 100%;
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  padding: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  min-height: 44px;
}

/* Receipt Modal */
.mobile-receipt-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.receipt-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.receipt-badge-title { font-size: 0.65rem; color: var(--color-cyan); font-weight: 700; text-transform: uppercase; }
.receipt-symbol-title { font-size: 1.05rem; }
.receipt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 0.75rem; }
.receipt-cell { background: var(--bg-main); padding: 8px 10px; border-radius: 6px; }
.cell-label { font-size: 0.6rem; color: var(--text-muted); display: block; }
.cell-code { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-secondary); word-break: break-all; }
.cell-val { font-size: 0.85rem; }
.evidence-hash-box { background: var(--bg-main); padding: 8px 10px; border-radius: 6px; }
.hash-code { font-family: var(--font-mono); color: var(--color-cyan); font-size: 0.7rem; word-break: break-all; }
.receipt-footer-note { font-size: 0.65rem; color: var(--text-muted); }
.receipt-actions-row { display: flex; gap: 10px; justify-content: flex-end; }
.btn-receipt-copy { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border-color); padding: 8px 14px; border-radius: 6px; font-weight: 600; font-size: 0.8rem; cursor: pointer; min-height: 44px; }
.btn-receipt-close { background: var(--color-cyan); color: #020617; border: none; padding: 8px 18px; border-radius: 6px; font-weight: 700; font-size: 0.8rem; cursor: pointer; min-height: 44px; }

/* Ledger Card */
.ledger-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ledger-item-top { display: flex; justify-content: space-between; align-items: center; }
.ledger-entry-type { font-weight: 700; font-size: 0.85rem; }
.ledger-time { font-size: 0.65rem; color: var(--text-muted); margin-left: 6px; }
.ledger-amount { font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; }
.ledger-item-mid { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); }
.ledger-item-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; border-top: 1px solid var(--border-color); padding-top: 4px; margin-top: 2px; }
.btn-ledger-receipt { background: var(--bg-elevated); color: var(--color-cyan); border: 1px solid var(--border-color); border-radius: 4px; padding: 3px 8px; font-size: 0.7rem; font-weight: 600; cursor: pointer; }

/* Cashier & Wallet */
.wallet-screen-container { min-height: 100%; padding: 16px 14px 28px; background: radial-gradient(circle at 80% 0, rgba(14,165,233,.08), transparent 34%); }
.wallet-section-heading { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 12px; }
.wallet-section-heading h3, .cashier-history-section h4 { margin: 2px 0 0; color: var(--text-primary); font-size: 1.05rem; }
.wallet-eyebrow { color: var(--color-cyan); font-size: .61rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.wallet-secure-badge { padding: 5px 8px; border: 1px solid rgba(16,185,129,.25); border-radius: 999px; background: rgba(16,185,129,.09); color: #34d399; font-size: .62rem; font-weight: 800; }
.wallet-balance-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #14233b, #11192a 58%, #102438);
  border: 1px solid rgba(56,189,248,.18);
  border-radius: 16px;
  padding: 18px;
  margin: 0 0 12px;
  box-shadow: 0 16px 34px rgba(2,6,23,.28);
}
.wallet-balance-card::after { content: ''; position: absolute; width: 130px; height: 130px; right: -55px; top: -60px; border-radius: 50%; background: rgba(56,189,248,.08); }
.wallet-card-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }
.wallet-balance-main { position: relative; z-index: 1; overflow-wrap: anywhere; font-size: clamp(1.65rem, 9vw, 2.15rem); font-weight: 900; color: var(--color-green); font-family: var(--font-mono); margin: 7px 0 10px; letter-spacing: -.045em; }
.wallet-balance-sub-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.72rem; color: var(--text-secondary); }
.wallet-balance-sub-row strong { color: #e2e8f0; font-family: var(--font-mono); }
.wallet-action-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 0 18px; }
.btn-wallet-action { min-width: 0; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 11px; padding: 10px 4px; font-weight: 750; font-size: 0.68rem; cursor: pointer; min-height: 62px; display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.btn-wallet-action:active { transform: translateY(1px); }
.btn-wallet-action.btn-deposit { border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.08); }
.wallet-action-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(255,255,255,.055); color: var(--color-cyan); font-size: .95rem; }
.cashier-history-section { border-top: 1px solid var(--border-color); padding-top: 15px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.history-count { color: var(--text-muted); font-size: .62rem; }
.cashier-tx-list { display: flex; flex-direction: column; gap: 7px; }
.cashier-tx-row { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--border-color); border-radius: 11px; background: rgba(19,27,46,.82); }
.tx-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-weight: 900; }
.tx-icon.credit { color: #34d399; background: rgba(16,185,129,.12); }
.tx-icon.debit { color: #fb7185; background: rgba(244,63,94,.12); }
.tx-type-box, .tx-amount-box { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.tx-amount-box { align-items: flex-end; text-align: right; }
.tx-type { overflow: hidden; color: #e2e8f0; font-size: .7rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.tx-date, .tx-status { color: var(--text-muted); font-size: .58rem; }
.tx-status { max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
.tx-amount { font-family: var(--font-mono); font-size: .7rem; font-weight: 850; }
.tx-amount.credit { color: #34d399; }
.tx-amount.debit { color: #fb7185; }

/* Order sheet & Compact Half-Sheet */
.sheet-drag-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  margin: 8px auto 2px;
  flex-shrink: 0;
}

.mobile-drawer-sheet.sheet-compact,
.mobile-drawer-sheet:has(.order-sheet-container) {
  height: auto !important;
  max-height: 52vh !important;
  border-radius: 20px 20px 0 0 !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7) !important;
}

.compact-order-header {
  padding: 8px 16px 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  flex-shrink: 0;
}
.compact-order-header .drawer-title h3 {
  font-size: 0.95rem !important;
  font-weight: 800;
  margin: 0;
  color: #f8fafc;
}
.compact-order-header .drawer-subtitle {
  font-size: 0.65rem !important;
  color: var(--text-muted);
}

.order-sheet-container { display: flex; flex-direction: column; gap: 11px; padding: 8px 16px max(18px, env(safe-area-inset-bottom)); color: var(--text-primary); }
.compact-order-sheet {
  padding: 8px 14px max(14px, env(safe-area-inset-bottom)) !important;
  gap: 8px !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sheet-section { display: flex; flex-direction: column; gap: 9px; padding: 12px; border: 1px solid var(--border-color); border-radius: 12px; background: rgba(15,23,42,.72); }
.compact-section {
  padding: 8px 10px !important;
  gap: 6px !important;
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
}
.sheet-section-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.compact-section .sheet-section-header { gap: 6px; }
.sheet-label { color: #e2e8f0; font-size: .72rem; font-weight: 850; }
.compact-section .sheet-label { font-size: 0.68rem !important; }
.sheet-sublabel { color: var(--text-muted); font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.compact-section .sheet-sublabel { font-size: 0.55rem !important; }
.duration-pills-row, .stake-presets-row { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; }
.compact-section .dur-pill {
  min-height: 32px !important;
  font-size: 0.7rem !important;
  border-radius: 6px !important;
}
.dur-pill, .stake-preset-pill { min-width: 0; min-height: 39px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); color: var(--text-secondary); font-size: .72rem; font-weight: 800; }
.dur-pill.active, .stake-preset-pill.active { border-color: var(--color-cyan); background: rgba(56,189,248,.12); color: var(--color-cyan); box-shadow: inset 0 0 0 1px rgba(56,189,248,.14); }
.stake-input-container { display: grid; grid-template-columns: 42px 1fr 42px; gap: 8px; }
.compact-section .stake-input-container {
  grid-template-columns: 38px 1fr 38px !important;
  gap: 6px !important;
}
.stake-adj-btn { border: 1px solid var(--border-color); border-radius: 9px; background: var(--bg-elevated); color: #fff; font-size: 1.2rem; font-weight: 900; }
.compact-section .stake-adj-btn {
  height: 36px !important;
  font-size: 1.1rem !important;
  border-radius: 7px !important;
}
.stake-display-box { display: flex; align-items: center; gap: 5px; border: 1px solid var(--border-color); border-radius: 9px; background: #0b1220; padding: 0 12px; }
.compact-section .stake-display-box {
  height: 36px !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
}
.stake-currency { color: var(--text-muted); font-weight: 800; }
.stake-display-box input { width: 100%; border: 0; outline: 0; background: transparent; color: #fff; font-family: var(--font-mono); font-size: 1rem; font-weight: 850; }
.compact-section .stake-display-box input {
  font-size: 0.92rem !important;
}
.compact-section .stake-preset-pill {
  min-height: 28px !important;
  font-size: 0.68rem !important;
  border-radius: 6px !important;
}
.payout-summary-banner { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; overflow: hidden; border: 1px solid var(--border-color); border-radius: 11px; background: var(--border-color); }
.compact-payout-banner {
  border-radius: 8px !important;
}
.payout-stat { min-width: 0; padding: 10px 7px; background: var(--bg-card); text-align: center; }
.compact-payout-banner .payout-stat {
  padding: 6px 4px !important;
}
.payout-stat-label { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: .56rem; text-transform: uppercase; }
.compact-payout-banner .payout-stat-label {
  font-size: 0.52rem !important;
  margin-bottom: 2px !important;
}
.payout-stat-val { font-family: var(--font-mono); font-size: .72rem; }
.compact-payout-banner .payout-stat-val {
  font-size: 0.68rem !important;
}

.order-sheet-action-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 6px;
  align-items: center;
  margin-top: 3px;
}
.btn-confirm-investment {
  width: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  height: 40px;
  min-height: 40px;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}
.btn-confirm-investment:active {
  transform: scale(0.98);
}
.compact-btn-call,
.compact-btn-put {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 8px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  padding: 0 6px !important;
  border: none !important;
  color: #ffffff !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.compact-btn-call {
  background: #00b074 !important;
}
.compact-btn-put {
  background: #f43f5e !important;
}
.compact-btn-call:active,
.compact-btn-put:active {
  transform: scale(0.98);
}

.trade-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; touch-action: manipulation; }
.trade-action-grid .btn-trade { min-height: 70px; color: #ffffff !important; border: none; }
.trade-action-grid .btn-trade:disabled { opacity: 0.65; filter: saturate(0.8); cursor: not-allowed; }
.trade-action-grid .btn-trade-call,
.trade-action-grid .btn-trade-up { background: #00b074 !important; color: #ffffff !important; }
.trade-action-grid .btn-trade-put,
.trade-action-grid .btn-trade-down { background: #f43f5e !important; color: #ffffff !important; }
.btn-trade-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; color: #ffffff !important; }
.btn-trade-content .trade-dir-icon,
.btn-trade-content .trade-dir-text,
.btn-trade-content .trade-dir-payout { width: 100%; color: #ffffff !important; text-align: center; }
.quote-locked-bar { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border: 1px solid rgba(56,189,248,.22); border-radius: 9px; background: rgba(56,189,248,.08); color: #bae6fd; font-family: var(--font-mono); font-size: .66rem; }
.quote-countdown { color: var(--color-cyan); font-weight: 900; }

/* Deposit/withdrawal forms */
.drawer-form-content { overflow-y: auto; padding: 14px 16px max(24px, env(safe-area-inset-bottom)); }
.deposit-bonus-section { margin-bottom: 14px; }
.deposit-bonus-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #1e293b;
  background: #0a0f18;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bonus-switch-box {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(56, 189, 248, 0.08));
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.bonus-switch-box.off {
  border-color: #1e293b;
  background: #0a0f18;
}
.bonus-title { font-size: 13px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.bonus-sub { font-size: 10.5px; color: #c084fc; margin-top: 3px; }
.bonus-switch-box.off .bonus-sub { color: #64748b; }
.bonus-badge-free {
  background: rgba(168, 85, 247, 0.25);
  color: #c084fc;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.bonus-switch-box.off .bonus-badge-free {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}
.toggle-switch {
  width: 44px;
  height: 24px;
  background: #334155;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.toggle-switch.active { background: #10b981; }
.toggle-knob {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.toggle-switch.active .toggle-knob { left: 23px; }

.deposit-no-bonus-card {
  border: 1.5px dashed rgba(148, 163, 184, 0.3) !important;
  background: rgba(15, 23, 42, 0.4) !important;
  margin-bottom: 8px;
}
.deposit-no-bonus-card.active,
.deposit-no-bonus-card:has(input[name="deposit-bonus-campaign"]:checked) {
  border: 1.5px solid #38bdf8 !important;
  background: rgba(56, 189, 248, 0.08) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15) !important;
}

.btn-deposit-bonus-claim {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}
.btn-deposit-bonus-claim input[type="radio"] {
  accent-color: #38bdf8;
  cursor: pointer;
}
.deposit-bonus-card.active .btn-deposit-bonus-claim,
.deposit-bonus-card:has(input[name="deposit-bonus-campaign"]:checked) .btn-deposit-bonus-claim {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}
.deposit-proof-workflow { display: grid; grid-template-columns: 24px 1fr; gap: 7px 9px; margin: 3px 0 13px; padding: 11px; border: 1px dashed rgba(56,189,248,.28); border-radius: 10px; background: rgba(15,23,42,.55); }
.proof-step { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-elevated); color: var(--text-muted); font-size: .65rem; font-weight: 900; }
.proof-step.active { background: var(--color-cyan); color: #020617; }
.deposit-proof-workflow div { display: flex; flex-direction: column; gap: 2px; }
.deposit-proof-workflow strong { color: #e2e8f0; font-size: .7rem; }
.deposit-proof-workflow small { color: var(--text-muted); font-size: .61rem; line-height: 1.35; }
.info-alert { margin-bottom: 13px; padding: 10px 11px; border: 1px solid rgba(56,189,248,.2); border-radius: 9px; background: rgba(56,189,248,.07); color: #bae6fd; font-size: .68rem; line-height: 1.45; }
.intent-result-box { margin-top: 11px; }
.intent-success-card, .intent-error-card { padding: 11px; border-radius: 10px; font-size: .7rem; line-height: 1.45; }
.intent-success-card { border: 1px solid rgba(16,185,129,.25); background: rgba(16,185,129,.08); }
.intent-error-card { border: 1px solid rgba(244,63,94,.25); background: rgba(244,63,94,.08); }
.intent-success-title { display: block; margin-bottom: 7px; font-weight: 900; }
.intent-detail-row { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 7px; margin-top: 4px; }
.intent-detail-row code { overflow-wrap: anywhere; color: #bae6fd; }

/* Profile */
.profile-screen-container { display: flex; flex-direction: column; gap: 11px; padding-bottom: 24px; }
.profile-screen-heading { padding: 4px 2px 2px; }
.profile-screen-heading > span, .profile-overline { color: var(--color-cyan); font-size: .59rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.profile-screen-heading h3 { margin: 3px 0; font-size: 1.14rem; }
.profile-screen-heading p { margin: 0; color: var(--text-muted); font-size: .68rem; }
.profile-header-card { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; border: 1px solid rgba(56,189,248,.2); border-radius: 14px; background: linear-gradient(135deg, rgba(30,41,59,.96), rgba(15,23,42,.96)); width: 100%; box-sizing: border-box; }
.profile-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(56,189,248,.3); border-radius: 14px; background: rgba(56,189,248,.12); color: var(--color-cyan); font-size: 1.25rem; font-weight: 900; }
.profile-info-box { min-width: 0; }
.profile-email { overflow-wrap: anywhere; margin: 3px 0 7px; color: #f8fafc; font-size: .8rem; line-height: 1.35; }
.profile-badges-row { display: flex; flex-wrap: wrap; gap: 5px; }
.badge-role, .badge-kyc { padding: 3px 6px; border-radius: 5px; font-size: .55rem; font-weight: 850; }
.badge-role { background: rgba(56,189,248,.12); color: #7dd3fc; }
.badge-kyc { background: rgba(16,185,129,.12); color: #6ee7b7; }
.settings-group-card { overflow: hidden; border: 1px solid var(--border-color); border-radius: 13px; background: rgba(19,27,46,.76); }
.settings-group-heading { display: flex; align-items: center; gap: 9px; padding: 12px; border-bottom: 1px solid var(--border-color); }
.settings-group-heading h4 { margin: 0; font-size: .78rem; }
.settings-group-heading small { color: var(--text-muted); font-size: .58rem; }
.settings-group-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(56,189,248,.1); color: var(--color-cyan); }
.setting-item-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 9px 12px; border-bottom: 1px solid rgba(36,50,66,.65); color: var(--text-secondary); font-size: .7rem; }
.setting-item-row:last-child { border-bottom: 0; }
.setting-item-row strong { color: #f8fafc; font-family: var(--font-mono); font-size: .68rem; }
.form-select-sm { min-width: 136px; max-width: 56%; min-height: 34px; border: 1px solid var(--border-color); border-radius: 7px; background: #0b1220; color: #e2e8f0; padding: 6px 8px; font-size: .67rem; }
.profile-action-box { padding-top: 1px; }
.btn-logout { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(244,63,94,.24); border-radius: 10px; background: rgba(244,63,94,.08); color: #fda4af; padding: 0 13px; font-size: .73rem; font-weight: 850; }

/* Form Elements */
.form-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.form-group label { font-size: 0.75rem; color: var(--text-secondary); font-weight: 600; }
.form-select, .form-input { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-primary); padding: 10px 12px; font-size: 0.9rem; min-height: 44px; }
.btn-submit-action { width: 100%; background: var(--color-cyan); color: #020617; border: none; border-radius: 8px; padding: 12px; font-weight: 800; font-size: 0.95rem; cursor: pointer; min-height: 48px; }

.drawing-tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.drawing-tool-option { min-height: 48px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; gap: 8px; }
.drawing-tool-option.active { border-color: var(--color-cyan); color: var(--color-cyan); background: rgba(56,189,248,.1); }
.drawing-color-row { display: flex; align-items: center; justify-content: space-between; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 12px; font-size: .8rem; }
.drawing-color-row input { width: 48px; height: 34px; border: 0; background: transparent; }
.drawing-action-row { display: grid; grid-template-columns: 1.4fr .7fr .8fr; gap: 6px; }
.drawing-secondary-action, .drawing-danger-action { min-height: 44px; border-radius: 7px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-primary); font-weight: 700; }
.drawing-danger-action { color: #fecdd3; border-color: rgba(244,63,94,.45); }
.drawing-status-copy { margin: 0; color: var(--text-muted); font-size: .7rem; line-height: 1.45; }
.drawing-manager-list { display: flex; flex-direction: column; gap: 6px; }
.drawing-manager-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); }
.drawing-manager-item span:nth-child(2) { display: flex; flex-direction: column; font-size: .76rem; }
.drawing-manager-item small { color: var(--text-muted); font-size: .64rem; }

/* Pending Order Modal & Drawer (StarX Terminal) */
.pending-modal-wrapper {
  padding: 14px 16px 20px;
  background: #0b0f19;
  color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  border-radius: 14px 14px 0 0;
}

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

.pending-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
}

.pending-modal-close {
  background: none;
  border: none;
  font-size: 1.35rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.pending-asset-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.pending-asset-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pending-asset-icon {
  display: inline-flex;
  width: 28px;
  height: 22px;
  align-items: center;
}

.pending-asset-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
}

.pending-segmented-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.pending-segmented-pill {
  height: 42px;
  border-radius: 6px;
  border: none;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #20293a;
  color: #8e9cb2;
  transition: all 0.15s ease;
}

.pending-segmented-pill.active {
  background: #0070f3;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 112, 243, 0.35);
}

.pending-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pending-panel[hidden] {
  display: none;
}

.pending-input-outlined {
  position: relative;
  background: #101622;
  border: 1px solid #222d3d;
  border-radius: 8px;
  min-height: 52px;
  padding: 10px 14px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.15s ease;
}

.pending-input-outlined:focus-within,
.pending-input-outlined:hover {
  border-color: #38bdf8;
}

.pending-notch-tag {
  position: absolute;
  top: -8px;
  left: 12px;
  background: #101622;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #7f90a6;
  letter-spacing: 0.02em;
}

.pending-input-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pending-field-input {
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 1.15rem;
  font-weight: 800;
  width: 100%;
  outline: none;
  padding: 0;
}

.pending-field-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f8fafc;
}

.pending-clickable-box {
  cursor: pointer;
}

.pending-clickable-val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: all 0.15s ease;
}

.pending-clickable-val:hover,
.pending-clickable-val:active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
}

.pending-chevron-svg {
  stroke: #38bdf8;
}

.pending-duration-tray,
.pending-stake-tray {
  background: #111827;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 10px;
  padding: 12px;
  margin-top: 2px;
  margin-bottom: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: pendingTraySlideDown 0.15s ease-out;
}

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

.pending-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pending-tray-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.pending-tray-close:hover {
  color: #f8fafc;
}

.pending-dur-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.pending-dur-pill {
  background: #1a2333;
  border: 1px solid #2d3b4f;
  border-radius: 7px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pending-dur-pill:active {
  transform: scale(0.95);
}

.pending-dur-pill.active {
  background: linear-gradient(135deg, #0284c7 0%, #0070f3 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.dur-pill-period {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f8fafc;
}

.dur-pill-sub {
  font-size: 0.60rem;
  color: #94a3b8;
  margin-top: 1px;
}

.pending-dur-pill.active .dur-pill-sub {
  color: #e0f2fe;
}

.pending-stake-presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.pending-stake-pill {
  background: #1a2333;
  border: 1px solid #2d3b4f;
  border-radius: 7px;
  padding: 7px 4px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #f8fafc;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.pending-stake-pill:active {
  transform: scale(0.95);
}

.pending-stake-pill.active {
  background: linear-gradient(135deg, #0284c7 0%, #0070f3 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.pending-custom-stake-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.pending-custom-prefix {
  font-size: 0.95rem;
  font-weight: 800;
  color: #38bdf8;
  padding-left: 4px;
}

.pending-custom-stake-input {
  flex: 1;
  background: #0b0f19;
  border: 1px solid #2d3b4f;
  border-radius: 6px;
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 6px 10px;
  outline: none;
}

.pending-custom-stake-input:focus {
  border-color: #38bdf8;
}

.pending-apply-stake-btn {
  background: #0070f3;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 14px;
  cursor: pointer;
}

.pending-apply-stake-btn:hover {
  background: #2563eb;
}

.pending-helper-row {
  font-size: 0.72rem;
  color: #718299;
  margin-top: -5px;
  margin-bottom: 2px;
  padding: 0 4px;
}

.pending-helper-row strong {
  color: #f8fafc;
  font-weight: 700;
}

.pending-investment-box {
  padding-bottom: 6px;
}

.pending-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pending-step-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #182232;
  border: 1px solid #2d3b4f;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pending-step-btn:active {
  background: #2b3952;
  transform: scale(0.92);
}

.pending-switch-btn {
  display: block;
  margin: 1px auto -2px;
  background: none;
  border: none;
  font-size: 0.64rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

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

.btn-pending-action {
  height: 50px;
  border-radius: 8px;
  border: none;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.05s ease;
}

.btn-pending-action:active {
  transform: scale(0.97);
}

.btn-pending-up {
  background: #00b074;
  color: #ffffff;
}

.btn-pending-down {
  background: #f43f5e;
  color: #ffffff;
}

.pending-btn-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pending-clock-svg {
  stroke: #ffffff;
}

.pending-btn-text {
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
}

.pending-circle-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.pending-footer-link-wrap {
  text-align: center;
  margin-top: 6px;
}

.btn-how-it-works {
  background: none;
  border: none;
  color: #0070f3;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px;
}

.btn-how-it-works:hover {
  text-decoration: underline;
  color: #38bdf8;
}

.pending-active-list-container {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pending-active-list-header {
  font-size: 0.72rem;
  font-weight: 800;
  color: #8e9cb2;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pending-order-item-card {
  background: #101622;
  border: 1px solid #222d3d;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
}

.pending-order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.pending-order-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: #7f90a6;
}

.badge-up {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.65rem;
}

.badge-down {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.65rem;
}

.btn-cancel-pending-order {
  border: 1px solid rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.1);
  color: #fecdd3;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}
.deposit-active-bonus { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 8px; border: 1px solid rgba(56,189,248,.3); background: rgba(56,189,248,.07); font-size: .78rem; }

.promo-subtabs-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}
.promo-subtab-btn {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 8px 4px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
}
.promo-subtab-btn.active {
  background: var(--bg-elevated);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

.intent-success-card {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.intent-success-title { font-weight: 800; font-size: 0.9rem; color: var(--color-green); }
.intent-detail-row { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-secondary); }
.intent-notice { font-size: 0.75rem; color: var(--color-amber); margin-top: 4px; }
.intent-error-card { background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.4); border-radius: 8px; padding: 12px; margin-top: 12px; color: var(--color-red); font-size: 0.85rem; }

/* Offline Overlay */
.offline-banner {
  background: #ef4444;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  display: none;
}
.offline-banner.visible { display: block; }

/* Mobile terminal command strip is removed to maximize chart vertical space.
   Shortcuts are now accessible via header, top bar, footer tabs, and profile. */
.mobile-terminal-command-strip {
  display: none !important;
}
.mobile-command-btn {
  display: none !important;
}
#mobile-docked-shortcuts {
  display: none !important;
}
.notification-command.unread { color: #fbbf24; border-color: rgba(251,191,36,.65); }
.mobile-chart-stage { position: relative; }
.mobile-chart-status-bar {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 5px;
  bottom: auto;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  color: #94a3b8;
  font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.status-feed-left {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}
.status-feed-right {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}
#mobile-chart-clock {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.3px;
  background: rgba(15, 23, 42, 0.75);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
}
.mobile-active-trades-count { padding: 2px 5px; border-radius: 999px; background: rgba(56,189,248,.15); color: #7dd3fc; white-space: nowrap; }
.mobile-chart-zoom-controls {
  display: none !important;
}
.mobile-chart-zoom-controls button {
  min-width: 34px;
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  border-right: 1px solid var(--border-color);
  background: transparent;
  color: #cbd5e1;
  font: 800 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.mobile-chart-zoom-controls button:last-child { border-right: 0; }
.mobile-chart-zoom-controls button:active { background: #253147; color: #fff; }
.feed-status { padding: 2px 6px; border-radius: 4px; color:#fbbf24; background:rgba(120,53,15,.65); }
.feed-status.online { color:#34d399;background:rgba(6,78,59,.7); }
.feed-status.degraded,.feed-status.offline { color:#fda4af;background:rgba(136,19,55,.7); }
.mobile-experience-grid { display:grid;gap:9px; }
.mobile-experience-card { border:1px solid var(--border-color);border-radius:10px;background:var(--bg-card);padding:12px;color:var(--text-secondary); }
.mobile-experience-card h4 { margin:0 0 6px;color:var(--text-primary); }
.mobile-experience-card p { margin:5px 0;line-height:1.45; }
.mobile-experience-actions { display:flex;gap:8px;flex-wrap:wrap;margin-top:10px; }
.mobile-experience-action { min-height:42px;border:1px solid rgba(56,189,248,.45);border-radius:8px;background:rgba(56,189,248,.1);color:#7dd3fc;font-weight:800;padding:8px 11px; }
.mobile-data-grid { display:grid;grid-template-columns:1fr 1fr;gap:8px; }
.mobile-data-grid span { display:grid;gap:3px;padding:8px;border-radius:7px;background:var(--bg-main);font-size:.7rem;color:var(--text-muted); }
.mobile-data-grid strong { color:var(--text-primary);font-size:.8rem; }
.mobile-support-form { display:grid;gap:9px; }
.mobile-support-form input,.mobile-support-form textarea,.mobile-support-form select { width:100%;min-height:43px;padding:9px;border:1px solid var(--border-color);border-radius:7px;background:var(--bg-main);color:var(--text-primary); }
.mobile-support-form textarea { min-height:100px;resize:vertical; }

/* Chart Type Beautified Drawer Cards */
.chart-type-drawer-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 20px;
}

.chart-type-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(19, 27, 46, 0.95), rgba(15, 23, 42, 0.98));
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.chart-type-card:active {
  transform: scale(0.98);
}

.chart-type-card.active {
  border-color: #38bdf8;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2), inset 0 0 12px rgba(56, 189, 248, 0.06);
}

.chart-type-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.chart-type-icon-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.chart-type-card.active .chart-type-icon-box {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.15);
}

.chart-type-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.chart-type-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-type-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
}

.chart-type-tag {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.chart-type-card.active .chart-type-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.chart-type-desc {
  margin: 0;
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.35;
}

.chart-type-card-right {
  margin-left: 10px;
  flex-shrink: 0;
}

.chart-type-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.chart-type-card.active .chart-type-radio {
  border-color: #38bdf8;
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.chart-type-card.active .chart-type-radio::after {
  content: '✓';
  color: #0b0f19;
  font-size: 12px;
  font-weight: 900;
}

/* Light mode overrides for Chart Type */
html[data-theme="light"] .chart-type-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .chart-type-card.active {
  background: rgba(56, 189, 248, 0.08);
  border-color: #0284c7;
}
html[data-theme="light"] .chart-type-title {
  color: #0f172a;
}
html[data-theme="light"] .chart-type-icon-box {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* ========================================== */
/* Upgraded Mobile Cashier & Checkout UI      */
/* ========================================== */
.cashier-mob-header {
  background: linear-gradient(135deg, rgba(15,23,42,0.98), rgba(11,17,32,0.98));
  border-bottom: 1px solid rgba(56,189,248,0.15);
  padding: 14px 16px;
}
.cashier-mob-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(16,185,129,0.15);
  color: #10b981;
  font-size: 1rem;
}
.cashier-mob-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 16px max(28px, env(safe-area-inset-bottom));
}

/* Category Tabs */
.mob-category-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #090e17;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(56,189,248,0.12);
}
.mob-cat-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 42px;
  padding: 6px 2px;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s;
}
.mob-cat-tab.active {
  background: rgba(56,189,248,0.15);
  color: #38bdf8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.cat-pill {
  font-size: 0.5rem;
  padding: 1px 4px;
  background: #10b981;
  color: #020617;
  border-radius: 4px;
  font-weight: 900;
}

/* Method Cards */
.mob-methods-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mob-method-card {
  background: linear-gradient(135deg, rgba(19,27,46,0.95), rgba(15,23,42,0.98));
  border: 1.5px solid rgba(56,189,248,0.16);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  position: relative;
}
.mob-method-card.selected {
  border-color: #38bdf8;
  background: linear-gradient(135deg, rgba(56,189,248,0.16), rgba(16,185,129,0.08));
  box-shadow: 0 0 0 1.5px #38bdf8, 0 8px 24px rgba(56,189,248,0.22);
}
.mob-method-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mob-method-icon {
  flex: 0 0 auto;
}
.mob-method-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mob-method-title {
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mob-method-speed {
  color: #34d399;
  font-size: 0.64rem;
  font-weight: 700;
}
.mob-method-badge {
  font-size: 0.58rem;
  font-weight: 850;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.mob-method-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(56,189,248,0.08);
  font-size: 0.65rem;
  color: #94a3b8;
}

/* Amount Section */
.mob-amount-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mob-amount-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mob-amount-header label {
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 800;
}
.mob-curr-toggle {
  display: flex;
  background: #090e17;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid rgba(56,189,248,0.12);
}
.curr-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.curr-btn.active {
  background: #38bdf8;
  color: #020617;
}

.mob-quick-chips-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.mob-quick-chip {
  position: relative;
  min-height: 44px;
  background: linear-gradient(135deg, rgba(19,27,46,0.9), rgba(15,23,42,0.95));
  border: 1.5px solid rgba(56,189,248,0.16);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.mob-quick-chip.active {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(5,150,105,0.25));
  color: #34d399;
  box-shadow: 0 0 0 1.5px #10b981, 0 6px 18px rgba(16,185,129,0.25);
}
.chip-main-amt {
  font-weight: 850;
  font-size: 0.76rem;
}
.chip-bonus-pill {
  font-size: 0.54rem;
  font-weight: 850;
  color: #34d399;
  background: rgba(16, 185, 129, 0.18);
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.chip-tag {
  position: absolute;
  top: -5px;
  right: -3px;
  font-size: 0.48rem;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 900;
}
.chip-tag.hot {
  background: #ef4444;
  color: #fff;
}
.chip-tag.vip {
  background: #f59e0b;
  color: #020617;
}

.mob-amount-input-box {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(9, 14, 23, 0.95), rgba(15, 23, 42, 0.98));
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 2px 14px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 12px rgba(56, 189, 248, 0.08);
  transition: all 0.2s;
}
.mob-amount-input-box:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25), inset 0 2px 6px rgba(0, 0, 0, 0.4);
}
.mob-input-prefix {
  color: #38bdf8;
  font-size: 1.1rem;
  font-weight: 900;
  font-family: var(--font-mono);
}
.mob-amount-field {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 900;
  padding: 10px 8px;
}
.mob-conversion-hint {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #94a3b8;
}

/* Bonus Booster Card */
.mob-bonus-booster-card {
  background: linear-gradient(135deg, rgba(30,27,75,0.8), rgba(15,23,42,0.9));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mob-bonus-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mob-bonus-icon {
  font-size: 1.2rem;
}
.mob-bonus-head div {
  display: flex;
  flex-direction: column;
}
.mob-bonus-head strong {
  color: #c084fc;
  font-size: 0.76rem;
}
.mob-bonus-head small {
  color: #94a3b8;
  font-size: 0.6rem;
}
.mob-bonus-calc-row {
  display: flex;
  justify-content: space-between;
  background: rgba(0,0,0,0.3);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.66rem;
  color: #cbd5e1;
}

/* CTA */
.mob-deposit-cta {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16,185,129,0.3);
  letter-spacing: 0.02em;
}

/* Checkout Sheet */
.mob-checkout-sheet {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #090e17;
  border: 1px solid rgba(56,189,248,0.25);
  border-radius: 14px;
  padding: 14px;
  margin-top: 10px;
}
.mob-checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(56,189,248,0.12);
}
.mob-checkout-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #94a3b8;
}
.mob-checkout-amount {
  text-align: right;
  display: flex;
  flex-direction: column;
}
.mob-checkout-amount strong {
  color: #10b981;
  font-size: 1.1rem;
  font-family: var(--font-mono);
}
.mob-checkout-amount small {
  color: #94a3b8;
  font-size: 0.6rem;
}
.mob-checkout-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mob-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}
.mob-qr-caption {
  color: #94a3b8;
  font-size: 0.65rem;
  text-align: center;
}
.btn-open-upi-app {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  background: #5f259f;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 850;
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(95,37,159,0.3);
}
.mob-address-box {
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(56,189,248,0.18);
  border-radius: 8px;
  padding: 8px 10px;
}
.mob-address-box label {
  color: #94a3b8;
  font-size: 0.62rem;
  display: block;
  margin-bottom: 4px;
}
.mob-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mob-copy-row code {
  color: #38bdf8;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-copy-address {
  background: rgba(56,189,248,0.15);
  border: 1px solid rgba(56,189,248,0.3);
  color: #38bdf8;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.mob-radar-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 8px;
  padding: 8px 10px;
}
.radar-ping {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.7);
  animation: radarPulse 1.5s infinite;
  flex: 0 0 auto;
}
@keyframes radarPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.mob-radar-banner strong {
  color: #34d399;
  font-size: 0.68rem;
  display: block;
}
.mob-radar-banner small {
  color: #94a3b8;
  font-size: 0.58rem;
}

.mob-utr-form {
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(56,189,248,0.18);
  border-radius: 8px;
  padding: 10px;
}
.mob-utr-form label {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  color: #e2e8f0;
  font-weight: 800;
  margin-bottom: 6px;
}
.mob-utr-input-row {
  display: flex;
  gap: 6px;
}
.mob-utr-field {
  flex: 1;
  background: #090e17;
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 8px;
}
.btn-verify-utr {
  background: #0ea5e9;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 850;
  padding: 0 10px;
  cursor: pointer;
  white-space: nowrap;
}
.mob-checkout-details {
  font-size: 0.66rem;
  color: #94a3b8;
}

/* Withdrawal Details */
.mob-withdraw-balance-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(19,27,46,0.85);
  border: 1px solid rgba(56,189,248,0.18);
  border-radius: 12px;
  padding: 12px;
}
.mob-w-label {
  color: #94a3b8;
  font-size: 0.65rem;
  display: block;
}
.mob-w-val {
  color: #10b981;
  font-size: 1.2rem;
  font-family: var(--font-mono);
  display: block;
}
.mob-withdraw-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.btn-w-chip {
  background: rgba(19,27,46,0.85);
  border: 1px solid rgba(56,189,248,0.15);
  color: #38bdf8;
  border-radius: 6px;
  padding: 5px 0;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 380px) {
  header.mobile-header {
    padding: 3px 8px;
    gap: 6px;
    min-height: 42px;
  }
  .mobile-header-logo {
    height: 20px;
    max-width: 100px;
  }
  .brand-row {
    font-size: 0.82rem;
    gap: 5px;
  }
  .badge-mode {
    font-size: 0.60rem;
    padding: 2px 6px;
    height: 20px;
  }
  .balance-value {
    font-size: 0.92rem;
  }
  .chart-top-bar {
    padding: 3px 6px;
    gap: 4px;
  }
  .inst-selector-btn {
    font-size: 0.72rem;
    padding: 3px 5px;
  }
  .btn-chart-tool {
    font-size: 0.62rem;
    padding: 3px 5px;
  }
  .mobile-order-controls {
    padding: 4px 6px;
  }
  .btn-trade {
    min-height: 42px;
    padding: 5px;
  }
  .trade-dir-text {
    font-size: 0.82rem;
  }
}

/* 5-Tier Verified Badge Pill */
.badge-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Name Change Modal */
.name-change-modal {
  animation: modalPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile Country Option */
.mobile-country-option {
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mobile-country-option:hover,
.mobile-country-option:active {
  background: #1e293b !important;
  border-color: #38bdf8 !important;
}

/* Mobile Payout Boost Pill */
#mobile-payout-boost-pill {
  animation: boostFadeIn 0.25s ease;
  white-space: nowrap;
}

@keyframes boostFadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Industry-Standard Light Mode Overrides for StarX Mobile Web / PWA
   ========================================================================== */

html[data-theme="light"] header.mobile-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

html[data-theme="light"] .balance-label {
  color: #64748b;
}

html[data-theme="light"] .chart-top-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

html[data-theme="light"] .inst-selector-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .btn-chart-tool {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .mobile-drawing-manager {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

html[data-theme="light"] .drawing-manager-chip {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

html[data-theme="light"] .mobile-market-provenance.synthetic {
  background: #fefce8;
  color: #b45309;
  border-bottom-color: #fef08a;
}

html[data-theme="light"] .mobile-market-provenance.synthetic.closed {
  background: #fff1f2;
  color: #be123c;
  border-bottom-color: #fecdd3;
}

html[data-theme="light"] .mobile-market-provenance.synthetic.unavailable {
  background: #f1f5f9;
  color: #475569;
  border-bottom-color: #cbd5e1;
}

html[data-theme="light"] .mobile-market-provenance.external {
  background: #ecfdf5;
  color: #047857;
  border-bottom-color: #a7f3d0;
}

html[data-theme="light"] .mobile-market-provenance span {
  color: #64748b;
}

html[data-theme="light"] .mobile-order-controls {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

html[data-theme="light"] .control-pill-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .control-pill-label {
  color: #64748b;
}

html[data-theme="light"] .control-pill-val {
  color: #0f172a;
}

html[data-theme="light"] nav.mobile-bottom-nav {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .nav-tab-btn {
  color: #64748b;
}

html[data-theme="light"] .nav-tab-btn.active {
  color: #0284c7;
}

html[data-theme="light"] .mobile-drawer-sheet {
  background: #ffffff;
  border-top: 1px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .drawer-header {
  border-bottom: 1px solid #e2e8f0;
}

html[data-theme="light"] .drawer-title h3 {
  color: #0f172a;
}

html[data-theme="light"] .drawer-subtitle {
  color: #64748b;
}

html[data-theme="light"] .drawer-close {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

html[data-theme="light"] .mobile-modal-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .order-sheet-container {
  background: #ffffff;
  color: #0f172a;
}

html[data-theme="light"] .sheet-label {
  color: #0f172a;
}

html[data-theme="light"] .sheet-sublabel {
  color: #64748b;
}

html[data-theme="light"] .dur-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}

html[data-theme="light"] .dur-pill.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

html[data-theme="light"] .stake-display-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

html[data-theme="light"] .stake-adj-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

html[data-theme="light"] #mobile-stake-input {
  color: #0f172a;
}

html[data-theme="light"] .stake-preset-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}

html[data-theme="light"] .stake-preset-pill.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

html[data-theme="light"] .payout-summary-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

html[data-theme="light"] .payout-stat-label {
  color: #64748b;
}

html[data-theme="light"] .payout-stat-val.text-bold {
  color: #0f172a;
}

html[data-theme="light"] .mob-withdraw-balance-card,
html[data-theme="light"] .mob-deposit-card,
html[data-theme="light"] .mob-payment-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .mob-w-label {
  color: #64748b;
}

html[data-theme="light"] .mob-w-val {
  color: #0f172a;
}

html[data-theme="light"] .form-group label {
  color: #334155;
}

html[data-theme="light"] .form-input,
html[data-theme="light"] .form-select,
html[data-theme="light"] .mob-amount-field {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

html[data-theme="light"] .mob-amount-input-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

html[data-theme="light"] .mob-input-prefix {
  color: #64748b;
}

html[data-theme="light"] .btn-w-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

html[data-theme="light"] .info-alert {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

html[data-theme="light"] .mobile-experience-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .mobile-experience-card h4 {
  color: #0f172a;
}

html[data-theme="light"] .mobile-experience-card p {
  color: #475569;
}

html[data-theme="light"] .mobile-experience-card time {
  color: #64748b;
}

html[data-theme="light"] .mobile-command-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

html[data-theme="light"] .promo-subtab-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

html[data-theme="light"] .promo-subtab-btn.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

html[data-theme="light"] .instrument-row {
  border-bottom: 1px solid #e2e8f0;
}

html[data-theme="light"] .instrument-name {
  color: #0f172a;
}

html[data-theme="light"] .active-trade-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .mobile-country-option {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme="light"] .mobile-country-option:hover,
html[data-theme="light"] .mobile-country-option:active {
  background: #f1f5f9 !important;
  border-color: #0284c7 !important;
}

html[data-theme="light"] .mobile-header-bell {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}
html[data-theme="light"] .btn-pair-info-icon {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

html[data-theme="light"] .mobile-chart-zoom-controls {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .mobile-chart-zoom-controls button {
  border-right: 1px solid #e2e8f0;
  color: #334155;
}

html[data-theme="light"] .mobile-chart-zoom-controls button:active {
  background: #f1f5f9;
  color: #0f172a;
}

html[data-theme="light"] .mobile-chart-status-bar {
  color: #64748b;
}

/* ============================================================================
   Beautified Mobile Notifications Center
   ============================================================================ */
.notif-drawer-header {
  padding: 12px 16px !important;
}
.notif-header-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notif-header-title-row h3 {
  margin: 0;
  font-size: 1.05rem;
}
.notif-bell-icon {
  font-size: 1.15rem;
}

.notif-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 15, 25, 0.95);
  flex-shrink: 0;
}
.notif-filter-bar::-webkit-scrollbar {
  display: none;
}
.notif-filter-pill {
  border: 1px solid #1e293b;
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.notif-filter-pill.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.notif-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 16px 24px;
}

.notif-luxury-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.92) 0%, rgba(15, 23, 42, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color 0.15s ease, transform 0.1s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.notif-luxury-card:hover {
  border-color: rgba(56, 189, 248, 0.25);
}
.notif-luxury-card.notif-badge-win {
  border-left: 3px solid #10b981;
}
.notif-luxury-card.notif-badge-loss {
  border-left: 3px solid #f43f5e;
}
.notif-luxury-card.notif-badge-tie {
  border-left: 3px solid #f59e0b;
}

.notif-leading-box {
  padding-top: 2px;
}
.notif-icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.notif-icon-win {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}
.notif-icon-loss {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #fb7185;
}
.notif-icon-tie {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}
.notif-icon-cashier {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
}
.notif-icon-support {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
}
.notif-icon-system {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fde047;
}
.notif-icon-info {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.notif-content-box {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.notif-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.notif-title-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.notif-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
}
.notif-time-ago {
  font-size: 0.62rem;
  color: #64748b;
  white-space: nowrap;
}
.notif-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.notif-badge.notif-badge-win {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.notif-badge.notif-badge-loss {
  background: rgba(244, 63, 94, 0.14);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.25);
}
.notif-badge.notif-badge-tie {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.notif-badge.notif-badge-info {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.notif-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
}
.notif-pair-tag {
  font-size: 0.68rem;
  font-weight: 750;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}
.notif-direction-tag {
  font-size: 0.64rem;
  font-weight: 850;
  padding: 2px 6px;
  border-radius: 4px;
}
.notif-direction-tag.tag-call {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.notif-direction-tag.tag-put {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.notif-desc-row {
  margin-top: 1px;
}
.notif-desc-text {
  font-size: 0.68rem;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  word-break: break-word;
}

.notif-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.notif-clock-stamp {
  font-size: 0.6rem;
  color: #64748b;
}
.notif-receipt-btn {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.notif-receipt-btn:hover {
  color: #7dd3fc;
}

.notif-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}
.notif-empty-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  opacity: 0.7;
}
.notif-empty-state h4 {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin: 0 0 4px;
}
.notif-empty-state p {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0;
  max-width: 260px;
  line-height: 1.4;
}

html[data-theme="light"] .notif-filter-bar {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}
html[data-theme="light"] .notif-filter-pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}
html[data-theme="light"] .notif-filter-pill.active {
  background: rgba(2, 132, 199, 0.12);
  border-color: #0284c7;
  color: #0284c7;
}
html[data-theme="light"] .notif-luxury-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .notif-title {
  color: #0f172a;
}
html[data-theme="light"] .notif-pair-tag {
  background: #f1f5f9;
  color: #334155;
}

/* =====================================================================
   LANDSCAPE ORIENTATION (MOBILE SMARTPHONES): 3-ZONE TRADING TERMINAL
   Height: <= 550px | Left Nav Rail + Center Chart + Right Order Sidebar
   ===================================================================== */
@media (orientation: landscape) and (max-height: 550px) {
  /* 1. Header: Ultra-slim 36px bar */
  .mobile-header {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left)) !important;
    z-index: 60;
  }
  .header-left-cluster {
    gap: 5px !important;
  }
  .mobile-header-logo {
    height: 20px !important;
    max-width: 120px !important;
    width: auto !important;
  }
  .badge-mode {
    font-size: 0.68rem !important;
    padding: 2px 5px !important;
  }
  .mobile-header-bell {
    width: 26px !important;
    height: 26px !important;
    font-size: 13px !important;
  }
  .header-balance-box {
    padding: 1px 6px !important;
  }
  .header-balance-box .balance-label {
    display: none !important;
  }
  .header-balance-box .balance-value {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
  }
  .mobile-header-guest-cta {
    height: 24px !important;
    font-size: 0.68rem !important;
    padding: 0 6px !important;
  }

  /* 2. Left Navigation Rail (relocated from bottom) */
  .mobile-bottom-nav {
    position: fixed !important;
    top: 36px !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 48px !important;
    height: calc(100vh - 36px) !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 6px 0 !important;
    gap: 4px !important;
    border-top: none !important;
    border-right: 1px solid var(--border-color, rgba(255, 255, 255, 0.08)) !important;
    background: #090e17 !important;
    z-index: 50 !important;
  }
  .mobile-bottom-nav .nav-tab-btn {
    width: 44px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 2px 0 !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2px !important;
  }
  .mobile-bottom-nav .nav-tab-icon {
    font-size: 15px !important;
    line-height: 1 !important;
  }
  .mobile-bottom-nav .nav-tab-btn span:last-child {
    font-size: 8px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
  }

  /* 3. Main Content Container (shifted right of left rail) */
  main.mobile-main-content {
    margin-left: 48px !important;
    height: calc(100vh - 36px) !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
  }

  /* 4. Terminal Grid: Panoramic Chart (Left) + Order Sidebar (Right) */
  .chart-view-section {
    display: grid !important;
    grid-template-columns: 1fr 165px !important;
    grid-template-rows: 32px 1fr !important;
    height: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
  }
  .chart-view-section[style*="display: none"] {
    display: none !important;
  }

  /* Top Bar (Instruments, Indicators, Drawings, Candles, Period) */
  .chart-top-bar {
    grid-column: 1 / 2 !important;
    grid-row: 1 / 2 !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 2px 6px !important;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08)) !important;
    z-index: 20 !important;
    gap: 4px !important;
  }
  .chart-top-bar .inst-selector-btn {
    height: 26px !important;
    min-height: 26px !important;
    padding: 2px 6px !important;
    font-size: 0.72rem !important;
  }
  .chart-top-bar .btn-chart-tool {
    height: 26px !important;
    min-height: 26px !important;
    padding: 2px 5px !important;
    font-size: 0.68rem !important;
  }
  .chart-top-bar .btn-pair-info-icon {
    width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
  }

  /* Panoramic Chart Stage */
  .mobile-chart-stage {
    grid-column: 1 / 2 !important;
    grid-row: 2 / 3 !important;
    height: 100% !important;
    min-height: 0 !important;
    position: relative !important;
    overflow: hidden !important;
  }
  #mobile-chart-canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Right-hand Dedicated Order Column (Full Height) */
  .mobile-order-controls {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 3 !important;
    height: 100% !important;
    max-height: calc(100vh - 36px) !important;
    border-top: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #090e17 !important;
    padding: 5px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    box-sizing: border-box !important;
    z-index: 25 !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
  }
  .mobile-order-controls::-webkit-scrollbar {
    display: none !important;
  }

  /* 4a. Pending Trade Toggle (at top of right column) */
  .order-controls-header-row {
    padding: 0 !important;
    margin: 0 0 2px 0 !important;
    min-height: 24px !important;
    display: flex !important;
  }
  .order-controls-header-row .order-inst-pill {
    display: none !important; /* Asset is already on chart-top-bar */
  }
  .pending-toggle-container {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 6px !important;
    padding: 3px 6px !important;
    box-sizing: border-box !important;
  }
  .pending-toggle-text {
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    letter-spacing: 0.3px !important;
  }
  .pending-toggle-switch {
    width: 28px !important;
    height: 15px !important;
  }
  .pending-slider:before {
    width: 11px !important;
    height: 11px !important;
    left: 2px !important;
    bottom: 2px !important;
  }
  input:checked + .pending-slider:before {
    transform: translateX(13px) !important;
  }

  /* 4b. Timer & Investment Outlined Boxes (Stacked) */
  .controls-inputs-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin-bottom: 2px !important;
  }
  .control-outlined-box {
    height: 36px !important;
    min-height: 36px !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
  }
  .control-outlined-box .box-notch-label {
    font-size: 0.56rem !important;
    top: -5px !important;
    padding: 0 3px !important;
  }
  .control-outlined-box .control-box-val {
    font-size: 0.8rem !important;
  }
  .investment-stepper-inner {
    gap: 2px !important;
  }
  .stake-step-btn {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.8rem !important;
    padding: 0 !important;
  }
  .investment-switch-link {
    font-size: 0.54rem !important;
    padding: 1px 2px !important;
  }

  /* 4c. Payout Row */
  .payout-dotted-row {
    padding: 1px 2px !important;
    font-size: 0.65rem !important;
    margin-bottom: 2px !important;
  }
  .payout-dotted-label {
    font-size: 0.65rem !important;
  }
  .payout-dotted-val {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
  }

  /* 4d. Up & Down Action Buttons (Stacked with large touch targets) */
  .trade-buttons-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin-top: auto !important;
    margin-bottom: 2px !important;
  }
  .btn-trade {
    min-height: 40px !important;
    height: 42px !important;
    padding: 3px 8px !important;
    border-radius: 7px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
  }
  .btn-trade .trade-btn-label {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
  }
  .btn-trade .trade-circle-icon {
    width: 20px !important;
    height: 20px !important;
  }

  /* 4e. Risk-Free Banners Compacted */
  #mobile-risk-free-banner,
  #mobile-risk-free-hint {
    padding: 2px 6px !important;
    margin-bottom: 3px !important;
    border-radius: 5px !important;
  }

  /* 5. Drawers / Modal Sheets in Landscape */
  .mobile-drawer-sheet {
    height: 94vh !important;
    max-height: 94vh !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    border-radius: 12px 12px 0 0 !important;
  }
  .mobile-drawer-sheet.sheet-compact,
  .mobile-drawer-sheet:has(.order-sheet-container) {
    max-height: 94vh !important;
    height: auto !important;
    max-width: 460px !important;
    margin: 0 auto !important;
  }
  .sheet-section.compact-section {
    margin-bottom: 6px !important;
  }

  /* Modals (Auth, Receipt, Confirmation) in Landscape */
  #mobile-modal-overlay {
    align-items: center !important;
    justify-content: center !important;
    padding: 6px !important;
    overflow-y: auto !important;
  }
  .mobile-modal-box {
    max-height: 94vh !important;
    overflow-y: auto !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
  }

  .view-panel {
    height: 100% !important;
    overflow-y: auto !important;
    padding: 8px 14px !important;
  }
  .view-panel[style*="display: none"] {
    display: none !important;
  }

  /* 7. Light Theme Adaptations */
  html[data-theme="light"] .mobile-order-controls {
    background: #ffffff !important;
    border-left-color: #e2e8f0 !important;
  }
  html[data-theme="light"] .mobile-bottom-nav {
    background: #ffffff !important;
    border-right-color: #e2e8f0 !important;
  }
}
