/* ═══════════════════════════════════════════════════════
   iCoreUX — Ecosystem Rotator — Original
   آخر تحديث: 2026-10-22
   ═══════════════════════════════════════════════════════ */

.icx-rotator {
  position: fixed;
  z-index: 9000;
  width: 280px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.08),
    0 1px 3px rgba(0,0,0,0.04),
    0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  bottom: 24px;
  left: 24px;
  right: auto;
}

.icx-rotator.icx-rotator-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@media (max-width: 768px) {
  .icx-rotator {
    width: calc(100vw - 24px);
    max-width: 340px;
    bottom: 12px;
    right: 12px;
    left: 12px;
  }
}

[dir="rtl"] .icx-rotator {
  right: auto;
  left: 24px;
}

.icx-rotator-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  transition: all 0.15s;
}
.icx-rotator-close:hover {
  background: rgba(0,0,0,0.05);
  color: #475569;
}

.icx-rotator-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px 10px 14px;
}

.icx-rotator-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.icx-rotator:hover .icx-rotator-icon { transform: scale(1.08); }

.icx-rotator-pill-info { flex: 1; min-width: 0; }

.icx-rotator-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icx-rotator-tagline {
  font-size: 11px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.icx-rotator-cta {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s;
}
.icx-rotator-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.icx-rotator-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 6px 14px 12px;
  flex-wrap: wrap;
}

.icx-rotator-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.icx-rotator-dot:hover { background: #94a3b8; }
.icx-rotator-dot.active {
  background: #0f172a;
  width: 18px;
  border-radius: 3px;
}

@media (prefers-color-scheme: dark) {
  .icx-rotator {
    background: #1e293b;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
  }
  .icx-rotator-name    { color: #f8fafc; }
  .icx-rotator-tagline { color: #cbd5e1; }
  .icx-rotator-icon    { background: rgba(255,255,255,0.04); }
  .icx-rotator-close   { color: #64748b; }
  .icx-rotator-close:hover { background: rgba(255,255,255,0.06); color: #cbd5e1; }
  .icx-rotator-dot     { background: #334155; }
  .icx-rotator-dot.active { background: #f1f5f9; }
}

@media (max-width: 1100px) {
  body.agroupai-page .icx-rotator { display: none !important; }
}

@keyframes icx-rotator-fade-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.icx-rotator.icx-rotator-visible {
  animation: icx-rotator-fade-in 0.4s ease forwards;
}
