/*Pop up + window*/
/* ── FLOATING ACTION BUTTON (FAB) ── */
.fab-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999999;
}

.fab-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dim));
  border: none;
  color: #000;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(19, 141, 50, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.fab-btn:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 25px rgba(3, 177, 46, 0.7);
}
.fab-btn.active {
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--red), #ef4444);
  box-shadow: 0 4px 20px rgba(248, 113, 113, 0.5);
}

/* النافذة المنبثقة للإعدادات */
.fab-popup {
  position: absolute;
  bottom: 75px;
  left: 0;
  width: 320px;
  background: #080d0f;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.9), 0 0 20px rgba(0, 255, 65, 0.15);
  animation: fadeInUp 0.2s ease;
}
.fab-popup.open { display: flex; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fab-popup label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.fab-popup select, .fab-popup input {
  width: 100%;
  background: #000;
  border: 1px solid var(--border);
  color: var(--green);
  padding: 10px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
}
.fab-popup select:focus, .fab-popup input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.2);
}
.fab-popup button {
  background: var(--green);
  color: #000;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-family: var(--mono);
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 5px;
}
.fab-popup button:hover { opacity: 0.8; }

/* شكل النافذة العائمة للصفقات الحية - الفلكسبل */
.live-float-win {
  position: fixed !important;
  /* تم إزالة الـ !important من المكان لتسمح للسحب بالعمل */
  top: 40px;
  left: 40px;
  width: 450px;
  height: 520px;
  min-width: 280px; 
  min-height: 200px;
  background: #000;
  border: 1px solid var(--green);
  border-radius: 4px;
  z-index: 999998 !important;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(0, 255, 65, 0.25);
  overflow: hidden;
  resize: both; 
}
.live-float-win .win-header {
  background: #050a0c;
  padding: 12px;
  cursor: grab;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  user-select: none;
  flex-shrink: 0; 
}
.live-float-win .win-body {
  flex: 1;
  overflow-y: auto; 
  overflow-x: hidden;
}
.live-float-win table { width: 100%; border-collapse: collapse; }
.live-float-win th, .live-float-win td { 
  padding: 8px 10px; font-size: 12px; color: #e5e7eb; font-family: 'Inter', sans-serif; 
  text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); 
}
.live-float-win th { color: #6b7280; font-size: 9px; position: sticky; top:0; background: #050a0c; letter-spacing: 1px; }
.live-float-win .buy { color: var(--green); font-weight: 500; }
.live-float-win .sell { color: var(--red); font-weight: 500; }
.live-float-win .price { color: var(--green); font-family: 'Space Mono', monospace; font-weight: 400; }
.live-float-win .exch-name { color: var(--purple-bright); font-family: 'Space Mono', monospace; font-size: 10.5px; }