/* ==========================================================================
   KuCoin Smart Bot & Deep X-Ray Scanner - Ultra Premium Mobile CSS
   ========================================================================== */

:root {
  --bg-primary: #070B14;
  --bg-secondary: #0D1527;
  --bg-card: rgba(18, 28, 51, 0.75);
  --bg-card-hover: rgba(26, 40, 71, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.25);
  
  --emerald-neon: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --cyan-neon: #06B6D4;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --gold-accent: #F59E0B;
  --gold-glow: rgba(245, 158, 11, 0.35);
  --rose-danger: #EF4444;
  --rose-glow: rgba(239, 68, 68, 0.35);
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --font-family: 'Outfit', 'Cairo', system-ui, -apple-system, sans-serif;
  --bottom-nav-height: 70px;
  --header-height: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  user-select: none;
  -webkit-user-select: none;
}

/* RTL Support */
body.rtl {
  direction: rtl;
  text-align: right;
}
body.ltr {
  direction: ltr;
  text-align: left;
}

/* Background Cyber Grid Accent */
.cyber-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* ================= HEADER ================= */
.app-header {
  height: var(--header-height);
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--emerald-neon), var(--cyan-neon));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--emerald-glow);
}

.app-logo svg {
  width: 22px;
  height: 22px;
  color: #070B14;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(90deg, #FFFFFF, #94A3B8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-neon);
  border-radius: 4px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-pill {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-pill.paper {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--gold-accent);
}

.mode-pill.live {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald-neon);
}

.mode-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.5s infinite;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-btn:hover, .icon-btn:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.96);
}

/* ================= LIVE TICKER BAR ================= */
.live-status-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-glass);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.status-indicator .ping {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-neon);
  box-shadow: 0 0 8px var(--emerald-neon);
}

.btc-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-neon);
  font-weight: 600;
}

.btc-badge.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--rose-danger);
}

/* ================= CONTAINER & TABS ================= */
.screen-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
}

.screen {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.screen.active {
  display: block;
}

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

/* ================= CARDS & GLASS ================= */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.glass-card.highlight {
  border-color: var(--border-glow);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-title .icon {
  margin-inline-end: 6px;
}

/* ================= RADAR SCREEN ================= */
.radar-hero {
  text-align: center;
  padding: 16px 8px;
  position: relative;
}

.radar-ping-circle {
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 2px solid var(--emerald-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.radar-ping-circle::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--emerald-neon);
  animation: radarWave 2s infinite ease-out;
}

.radar-ping-circle svg {
  width: 40px;
  height: 40px;
  color: var(--emerald-neon);
}

@keyframes radarWave {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.radar-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}

.stat-box .val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-box .lbl {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Radar Signal Cards */
.signal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.signal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.4);
}

.signal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--emerald-neon);
}

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

.symbol-badge {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.score-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-neon);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.signal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 12px;
}

.metric-item {
  text-align: center;
}
.metric-item .m-lbl {
  font-size: 0.65rem;
  color: var(--text-dim);
}
.metric-item .m-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--emerald-neon);
  margin-top: 2px;
}

.shield-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.shield-tag {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--cyan-neon);
  display: flex;
  align-items: center;
  gap: 4px;
}

.signal-actions {
  display: flex;
  gap: 8px;
}

.btn-primary {
  flex: 1;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #070B14;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: all 0.2s;
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

/* ================= X-RAY SCANNER SCREEN ================= */
.search-bar-wrap {
  position: relative;
  margin-bottom: 14px;
}

.search-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  padding: 14px 16px;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--emerald-neon);
  box-shadow: 0 0 16px var(--emerald-glow);
}

.search-btn-inside {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  bottom: 6px;
  background: var(--emerald-neon);
  border: none;
  border-radius: 10px;
  color: #070B14;
  font-weight: 800;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  transition: transform 0.15s;
}

.search-btn-inside:active {
  transform: scale(0.95);
}

.quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.quick-chips::-webkit-scrollbar { display: none; }

.chip {
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover, .chip:active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-neon);
  border-color: rgba(16, 185, 129, 0.3);
}

/* X-Ray Result Layout */
.xray-result {
  animation: fadeIn 0.3s ease-out;
}

.status-hero-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
}

.status-hero-banner .status-badge-lg {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.gauge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.gauge-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.gauge-val {
  font-size: 1.4rem;
  font-weight: 900;
  margin: 6px 0 2px;
}

.gauge-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}
.gauge-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--emerald-neon);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sr-levels-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}

.sr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}
.sr-row:last-child { border-bottom: none; }

.breakout-trigger-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.05));
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.trigger-title {
  color: var(--gold-accent);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.btn-watch-snipe {
  width: 100%;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #070B14;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--gold-glow);
  transition: all 0.2s;
}

/* ================= TRADES SCREEN ================= */
.panic-btn-wrap {
  margin-bottom: 14px;
}

.btn-panic {
  width: 100%;
  background: linear-gradient(135deg, #EF4444, #B91C1C);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--rose-glow);
  transition: transform 0.15s;
}

.trade-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.trade-card.profit {
  border-color: rgba(16, 185, 129, 0.4);
}
.trade-card.loss {
  border-color: rgba(239, 68, 68, 0.4);
}

.trade-pnl-live {
  font-size: 1.35rem;
  font-weight: 900;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

/* ================= PAPER LAB SCREEN ================= */
.balance-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.balance-card .bal-amount {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  margin: 6px 0;
}

.winrate-bar-wrap {
  margin-top: 10px;
}

.winrate-track {
  height: 8px;
  background: rgba(239, 68, 68, 0.4);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}
.winrate-fill-win {
  height: 100%;
  background: var(--emerald-neon);
}

/* ================= SETTINGS SCREEN ================= */
.form-group {
  margin-bottom: 14px;
}

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

.form-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 10px 14px;
  color: #FFFFFF;
  font-size: 0.9rem;
  outline: none;
}
.form-input:focus {
  border-color: var(--emerald-neon);
}

.range-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.range-slider {
  flex: 1;
  accent-color: var(--emerald-neon);
}

.slider-val {
  min-width: 44px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald-neon);
}

.toggle-switch-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 24px;
  border: 1px solid var(--border-glass);
}
.slider-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider-round {
  background-color: var(--emerald-neon);
}
input:checked + .slider-round:before {
  transform: translateX(20px);
}

/* ================= BOTTOM NAVIGATION ================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(7, 11, 20, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  z-index: 100;
  max-width: 640px;
  margin: 0 auto;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  transition: transform 0.2s;
}

.nav-item.active {
  color: var(--emerald-neon);
}

.nav-item.active svg {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px var(--emerald-glow));
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--emerald-neon);
  box-shadow: 0 0 8px var(--emerald-neon);
}

/* Utility Animations & Helpers */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

.text-emerald { color: var(--emerald-neon) !important; }
.text-cyan { color: var(--cyan-neon) !important; }
.text-gold { color: var(--gold-accent) !important; }
.text-rose { color: var(--rose-danger) !important; }

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  opacity: 0.4;
}

/* Modal Overlay & Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  width: 100%;
  max-width: 420px;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* ================= PIN LOCK SCREEN ================= */
.pin-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0B132B 0%, #050811 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.pin-container {
  width: 100%;
  max-width: 340px;
  text-align: center;
  padding: 28px 20px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.15), 0 20px 40px rgba(0,0,0,0.8);
}

.pin-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  border: 2px solid var(--cyan-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--cyan-neon);
  box-shadow: 0 0 20px var(--cyan-glow);
  animation: pulse 3s infinite;
}

.pin-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.pin-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.pin-dots-wrap {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pin-dot.filled {
  background: var(--cyan-neon);
  border-color: var(--cyan-neon);
  box-shadow: 0 0 12px var(--cyan-neon);
  transform: scale(1.15);
}

.pin-error {
  color: var(--rose-danger);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  animation: shake 0.3s ease-in-out;
}

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

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.pin-key {
  height: 54px;
  border-radius: 14px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pin-key:active {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--cyan-neon);
  transform: scale(0.94);
}

.pin-key-action {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.pin-key-ok {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.3));
  border-color: var(--emerald-neon);
  color: var(--emerald-neon);
}

/* ================= SENSITIVITY SELECTOR ================= */
.sensitivity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.sensitivity-card {
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sensitivity-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.sensitivity-card.active {
  border-color: var(--cyan-neon);
  background: rgba(6, 182, 212, 0.12);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.2);
}

.sensitivity-card .s-icon {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.sensitivity-card .s-name {
  font-size: 0.75rem;
  font-weight: 700;
  display: block;
}

.sensitivity-card .s-desc {
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-top: 2px;
  display: block;
}

/* ================= TRADE HISTORY CARDS ================= */
.history-item-card {
  background: rgba(18, 28, 51, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.history-item-card.profit {
  border-inline-start: 4px solid var(--emerald-neon);
}

.history-item-card.loss {
  border-inline-start: 4px solid var(--rose-danger);
}

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

.history-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.history-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 6px;
  margin-top: 4px;
}

