/* ==========================================================================
   XT.COM / BINANCE PRO CEX DARK DESIGN SYSTEM
   Pixel-Perfect Implementation Based on Official App Screenshots
   ========================================================================== */

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

:root {
  /* Core Backgrounds */
  --bg-app: #080A0D;
  --bg-surface: #0E1015;
  --bg-card: #151821;
  --bg-card-elevated: #1B1E28;
  --bg-input: #171A23;
  --bg-dock: #0E1015;

  /* Primary Brand & Neon Highlights */
  --brand-lime: #9BE71D;          /* Exact bright lime neon from screenshot */
  --brand-lime-hover: #88CF15;
  --brand-lime-text: #000000;
  --brand-primary: #9BE71D;
  --brand-gold: #F0B90B;
  --brand-gold-hover: #DDA205;

  /* Trading Colors (Exact Match to App Screenshot) */
  --color-buy: #9BE71D;           /* Neon lime green for gainers */
  --color-buy-text: #000000;      /* Black text on lime green pill */
  --color-buy-bg: #9BE71D;
  --color-sell: #FF4D6A;          /* Coral red for losers */
  --color-sell-text: #FFFFFF;     /* White text on red pill */
  --color-sell-bg: #FF4D6A;

  /* Typography Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #5E6673;
  --text-dark: #000000;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-focus: #9BE71D;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* Mobile App Container Framework */
.app-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-app);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ── Top Navigation Bar ── */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-app);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.nav-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.nav-back-btn:active {
  background: var(--bg-card);
}

/* ── Buttons (Exact Match to Screenshots) ── */
/* 1. Solid White Action Button (Like Deposit button) */
.btn-white-pill {
  background: #FFFFFF;
  color: #000000;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-white-pill:active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* 2. Dark Grey Action Button (Like Withdraw / Transfer buttons) */
.btn-dark-pill {
  background: #1F232C;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-dark-pill:active {
  transform: scale(0.97);
  background: #282D38;
}

/* 3. Primary Lime Action Button */
.btn-primary {
  background: var(--brand-lime);
  color: #000000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-primary:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.btn-social {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13.5px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.btn-social:active {
  background: var(--bg-card-elevated);
}

/* ── Change Rate Pills (Exact Match to Screenshot 1 & 2) ── */
.change-pill-green {
  background: var(--brand-lime);
  color: #000000;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 6px;
  min-width: 68px;
  text-align: center;
  display: inline-block;
}

.change-pill-red {
  background: var(--color-sell);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 6px;
  min-width: 68px;
  text-align: center;
  display: inline-block;
}

/* ── Coin Row Items ── */
.coin-row-item {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.coin-row-item:active {
  background: rgba(255, 255, 255, 0.02);
}

.coin-info-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coin-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #1F232C;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ts-logo-fb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #252A36;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-symbol {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.coin-pair-quote {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.coin-lev-badge {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-secondary);
  background: #1C2028;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 2px;
}

.coin-vol-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.coin-price-cell {
  text-align: right;
  padding-right: 12px;
}

.coin-price-main {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.coin-price-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.coin-change-cell {
  text-align: right;
}

/* ── Quick Service 4-Grid Hub (Screenshot 2 & 3) ── */
.quick-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px 16px;
}

.quick-hub-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
}

.quick-hub-icon-box {
  width: 48px;
  height: 48px;
  background: #181B23;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 6px;
  position: relative;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.quick-hub-item:active .quick-hub-icon-box {
  transform: scale(0.94);
  background: #20242E;
}

.hub-badge-hot {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #FF4D6A;
  color: #FFF;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.hub-badge-new {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand-lime);
  color: #000;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.quick-hub-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── 2-Column Mini Sparkline Cards (Screenshot 2 & 3) ── */
.spark-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 14px;
}

.spark-card-item {
  background: #151821;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.spark-card-info {
  display: flex;
  flex-direction: column;
}

.spark-card-header {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
}

.spark-card-change {
  color: var(--brand-lime);
  font-size: 11px;
  font-weight: 700;
}

.spark-card-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Favorites 2x2 Grid (Screenshot 3) ── */
.fav-grid-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 16px;
}

.fav-grid-item {
  background: #151821;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px 12px;
  position: relative;
}

.fav-grid-symbol {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.fav-grid-symbol span {
  font-size: 11px;
  color: var(--text-muted);
}

.fav-grid-price {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 8px 0 2px;
}

.fav-grid-change {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-lime);
}

.fav-grid-check {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: #252A36;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* ── Sub-Toggle Bar (Spot / Futures) ── */
.sub-toggle-wrap {
  display: inline-flex;
  background: #171A23;
  padding: 3px;
  border-radius: 8px;
  margin: 0 16px 8px;
}

.sub-toggle-btn {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sub-toggle-btn.active {
  background: #232733;
  color: #FFFFFF;
}

/* ── Horizontal Scroll Category Tabs ── */
.category-tabs-scroll {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 8px;
}

.category-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.cat-tab-btn {
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.cat-tab-btn.active {
  color: #FFFFFF;
  font-weight: 800;
}

.cat-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #FFFFFF;
  border-radius: 2px;
}

/* ── Fixed Bottom Navigation Dock (Exact Match to Screenshot 1, 2, 3, 5) ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 60px;
  background: var(--bg-dock);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  z-index: 999;
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 600;
  gap: 3px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.bnav-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #20242D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  color: #A0AEC0;
  transition: all var(--transition-fast);
}

.bnav-item.active {
  color: #FFFFFF;
}

.bnav-item.active .bnav-icon-box {
  background: var(--brand-lime);
  color: #000000;
  box-shadow: 0 0 10px rgba(155, 231, 29, 0.35);
}

/* ── Auth Forms Card ── */
.auth-wrapper {
  padding: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.auth-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.input-wrapper:focus-within {
  border-color: var(--brand-lime);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--text-primary);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.input-icon {
  padding-left: 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.input-action {
  padding: 0 14px;
  color: var(--text-muted);
  cursor: pointer;
}

/* ── Toast Notifications ── */
#toast-container,
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999999;
  width: calc(100% - 32px);
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

#toast-container .toast-msg,
.toast-container .toast-message,
.toast-msg,
.toast-message {
  background: #141720;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#toast-container .toast-msg.show,
.toast-container .toast-message.show,
.toast-msg.show,
.toast-message.show {
  opacity: 1;
  transform: translateY(0);
}

#toast-container .toast-msg.success,
.toast-container .toast-message.success,
.toast-msg.success,
.toast-message.success {
  border-color: #22C55E;
}
#toast-container .toast-msg.success i,
.toast-container .toast-message.success i,
.toast-msg.success i,
.toast-message.success i {
  color: #22C55E;
  font-size: 16px;
}

#toast-container .toast-msg.error,
.toast-container .toast-message.error,
.toast-msg.error,
.toast-message.error {
  border-color: #EF4444;
}
#toast-container .toast-msg.error i,
.toast-container .toast-message.error i,
.toast-msg.error i,
.toast-message.error i {
  color: #EF4444;
  font-size: 16px;
}

#toast-container .toast-msg.info,
.toast-container .toast-message.info,
.toast-msg.info,
.toast-message.info {
  border-color: #60A5FA;
}
#toast-container .toast-msg.info i,
.toast-container .toast-message.info i,
.toast-msg.info i,
.toast-message.info i {
  color: #60A5FA;
  font-size: 16px;
}

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

/* ══════════════════════════════════════════════════════════════════ */
/* ── TRADING TERMINAL STYLES (SPOT & FUTURES) ── */
/* ══════════════════════════════════════════════════════════════════ */

.trade-terminal {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-app);
  padding-bottom: 74px;
}

/* ── Top Trading Header Bar ── */
.trade-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-app);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 90;
}

.trade-pair-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.trade-pair-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  color: #FFFFFF;
}

/* ── Main Trading Grid (Orderbook Left | Order Form Right) ── */
.trade-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 12px;
  padding: 12px 16px;
  align-items: start;
}

/* ── Live Orderbook ── */
.order-book-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ob-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  height: 21px;
  position: relative;
  padding: 0 4px;
  border-radius: 2px;
  overflow: hidden;
}

.ob-row.ask .ob-price {
  color: var(--color-sell);
  z-index: 2;
  position: relative;
}

.ob-row.bid .ob-price {
  color: var(--color-buy);
  z-index: 2;
  position: relative;
}

.ob-row .ob-qty {
  color: var(--text-secondary);
  font-size: 10.5px;
  z-index: 2;
  position: relative;
}

.ob-bar,
.ob-depth-bar {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
  transition: width 0.15s ease;
  border-radius: 2px;
}

.ob-bar.ask,
.ob-depth-bar.sell {
  background: var(--color-sell);
}

.ob-bar.bid,
.ob-depth-bar.buy {
  background: var(--color-buy);
}

.ob-mid-price {
  padding: 6px 4px;
  margin: 2px 0;
  text-align: left;
}

#live-price-ob {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
}

#live-price-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* ── Order Entry Form ── */
.order-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-toggle-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #151821;
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
  margin-bottom: 2px;
}

.side-tab-btn {
  border: none;
  border-radius: 6px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition-fast);
  text-align: center;
}

.side-tab-btn.buy.active {
  background: var(--brand-lime);
  color: #000000;
  box-shadow: 0 2px 10px rgba(155, 231, 29, 0.3);
  font-weight: 900;
}

.side-tab-btn.sell.active {
  background: var(--color-sell);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(246, 70, 93, 0.3);
  font-weight: 900;
}

.trade-input-box {
  background: #151821;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: border-color 0.2s;
}

.trade-input-box:focus-within {
  border-color: var(--brand-lime);
}

.trade-input-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  width: 100%;
}

.trade-input-box input::placeholder {
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 500;
}

.trade-input-unit {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  white-space: nowrap;
}

.percent-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 2px 0;
}

.percent-chip {
  background: #151821;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 6px 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.percent-chip.active,
.percent-chip:hover {
  border-color: var(--brand-lime);
  color: var(--brand-lime);
  background: rgba(155, 231, 29, 0.08);
}

.btn-execute-trade {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s, transform 0.1s;
  margin-top: 4px;
}

.btn-execute-trade.buy {
  background: var(--brand-lime);
  color: #000000;
  box-shadow: 0 4px 14px rgba(155, 231, 29, 0.25);
}

.btn-execute-trade.sell {
  background: var(--color-sell);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(246, 70, 93, 0.25);
}

.btn-execute-trade:active {
  transform: scale(0.98);
}

/* ── Trade Sidebar Drawer ── */
.trade-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
}

.trade-sidebar-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 85%;
  max-width: 340px;
  background: #13151D;
  border-right: 1px solid var(--border-medium);
  z-index: 1001;
  padding: 16px;
  overflow-y: auto;
  box-shadow: 10px 0 30px rgba(0,0,0,0.8);
}

.trade-coin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  transition: background 0.15s;
}

.trade-coin-row:hover {
  background: #1A1D27;
}