/* ═══════════════════════════════════════════════
   محاكي تطبيق الموبايل والبث الحي - Live Mobile Simulator
   ═══════════════════════════════════════════════ */

/* ─── Floating Simulation Controller Dock ─── */
.sim-controller-dock {
  position: fixed;
  bottom: 24px;
  left: 28px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(212, 175, 55, 0.2);
  transition: all var(--transition-base);
  direction: rtl;
  font-family: 'Cairo', sans-serif;
}

[data-theme="dark"] .sim-controller-dock {
  background: #0d1629;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 175, 55, 0.3);
}

.sim-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  padding-left: 12px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .sim-status-indicator {
  color: #ffffff;
  border-left-color: rgba(255, 255, 255, 0.12);
}

.sim-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: simPulse 2s infinite;
}

.sim-pulse-dot.paused {
  background: #f59e0b;
  animation: none;
}

@keyframes simPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.sim-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.sim-btn-gold {
  background: linear-gradient(135deg, #d4af37, #b88e14);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(184, 142, 20, 0.3);
}

.sim-btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184, 142, 20, 0.45);
}

.sim-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .sim-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.1);
}

.sim-btn-secondary:hover {
  background: var(--gold-50);
  color: var(--gold-700);
  border-color: var(--gold-500);
}

/* ─── Mobile Smartphone Simulation Modal ─── */
.mobile-sim-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 8, 15, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-sim-modal.active {
  opacity: 1;
  visibility: visible;
}

.phone-wrapper {
  width: 360px;
  height: 720px;
  max-height: 92vh;
  background: #000000;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 2px #333333, 0 0 40px rgba(212, 175, 55, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform var(--transition-spring);
}

.mobile-sim-modal.active .phone-wrapper {
  transform: scale(1);
}

.phone-speaker {
  width: 110px;
  height: 24px;
  background: #000000;
  border-radius: var(--radius-full);
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-speaker::after {
  content: '';
  width: 48px;
  height: 4px;
  background: #222222;
  border-radius: 2px;
}

.phone-screen {
  flex: 1;
  background: #0b1120;
  border-radius: 34px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  color: #f1f5f9;
  font-family: 'Cairo', sans-serif;
  display: flex;
  flex-direction: column;
}

/* Phone Status Bar */
.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 22px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  z-index: 5;
}

/* Phone App Header */
.phone-app-header {
  padding: 14px 18px;
  background: linear-gradient(180deg, #101c36 0%, #0b1120 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-brand h4 {
  font-size: 0.95rem;
  font-weight: 900;
  color: #d4af37;
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.phone-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.phone-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}

.phone-card-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-input-group {
  margin-bottom: 10px;
}

.phone-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  display: block;
  margin-bottom: 4px;
}

.phone-select, .phone-input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.82rem;
  font-family: inherit;
  direction: rtl;
}

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

.phone-cabin-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.cabin-chip {
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cabin-chip.active {
  background: rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
  color: #f0d060;
}

.phone-price-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  margin-top: 14px;
}

.phone-price-amount {
  font-size: 1.15rem;
  font-weight: 900;
  color: #f0d060;
}

.phone-submit-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #d4af37 0%, #b88e14 100%);
  color: #04080f;
  font-weight: 900;
  font-size: 0.92rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  margin-top: 14px;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
  font-family: inherit;
  transition: all 0.2s ease;
}

.phone-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* ─── Real-Time Visual Ripple Animations ─── */
@keyframes kpiFlashGreen {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  50% { transform: scale(1.03); box-shadow: 0 0 25px rgba(34, 197, 94, 0.4); border-color: #22c55e; }
  100% { transform: scale(1); box-shadow: none; }
}

@keyframes kpiFlashGold {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
  50% { transform: scale(1.03); box-shadow: 0 0 25px rgba(212, 175, 55, 0.4); border-color: #d4af37; }
  100% { transform: scale(1); box-shadow: none; }
}

.flash-green {
  animation: kpiFlashGreen 1.5s ease-out;
}

.flash-gold {
  animation: kpiFlashGold 1.5s ease-out;
}

.row-new-highlight {
  animation: rowHighlight 3s ease-out;
}

@keyframes rowHighlight {
  0% { background-color: rgba(212, 175, 55, 0.25) !important; }
  100% { background-color: transparent !important; }
}
