/* ========== styles_2 ========== */




h3 {
  color: #0ff;
  border-bottom: 1px solid #044;
  padding-bottom: 8px;
  margin-top: 30px;
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  margin: 10px 0;
}

.close-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #004060;
  color: #00f6ff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

/* ========== 🧭 App Launcher & Preview Card css Copy code  ========== */

/* ========== Launcher & Preview ========== */

#mq-app-launcher {
  position: fixed;
  bottom: 100px;
  left: 24px;
  z-index: 1000001;
  text-align: center;
  pointer-events: none;
  display: none;
  width: max-content;
  max-width: calc(100vw - 48px);
  padding: 0;
  border-radius: 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  color: #00f6ff;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mq-app-launcher.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  box-shadow: none;

}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(84px, 1fr));
  gap: 14px;
  padding: 4px 2px;
}

.app-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  color: #00f6ff;
  cursor: pointer;
  pointer-events: auto;
  padding: 10px 6px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(0, 50, 70, 0.55), rgba(0, 20, 35, 0.35));
  border: 1px solid rgba(0, 246, 255, 0.18);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.25),
    inset 0 0 12px rgba(0, 246, 255, 0.06);
  transform-origin: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;

}

.app-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  border: 1px dashed rgba(0, 246, 255, 0.25);
  box-shadow: 0 0 16px rgba(0, 246, 255, 0.18);
  opacity: 0.35;
  transition: opacity 0.2s ease, transform 0.2s ease;
  animation: appLauncherOrbit 10s linear infinite;
  pointer-events: none;
}

.app-icon::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 246, 255, 0.12);
  opacity: 0.35;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.app-icon.has-unread {
  border-color: rgba(255, 86, 86, 0.55);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(255, 80, 80, 0.35),
    inset 0 0 16px rgba(255, 80, 80, 0.12);
}

.app-icon.has-unread::after {
  border-color: rgba(255, 86, 86, 0.6);
  box-shadow: 0 0 22px rgba(255, 86, 86, 0.45);
  opacity: 0.85;
  animation: appLauncherOrbit 10s linear infinite, appUnreadPulse 1.8s ease-in-out infinite;
}

.app-icon.has-unread::before {
  border-color: rgba(255, 120, 120, 0.35);
  opacity: 0.7;
}

.app-icon.has-unread img {
  filter: drop-shadow(0 0 10px rgba(255, 86, 86, 0.65));
}

.app-icon img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: radial-gradient(rgba(0, 246, 255, 0.12), rgba(0, 20, 40, 0.25));
      z-index: 10005 !important;
  transition: transform 0.2s ease, filter 0.2s ease;
  animation: appIconPulse 7s ease-in-out infinite;


}

.app-icon .app-label {
  margin-top: 2px;
  font-size: 0.74rem;
  font-weight: 500;
  color: #9bd6e3;
  text-align: center;
  letter-spacing: 0.4px;
  transition: color 0.2s ease;
}

.app-icon:hover {
  transform: translateY(-6px) scale(1.04);
  border-color: rgba(0, 246, 255, 0.65);
  background: linear-gradient(160deg, rgba(0, 90, 120, 0.7), rgba(0, 28, 46, 0.45));
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.45),
    0 0 26px rgba(0, 246, 255, 0.55);
}

.app-icon:hover::after {
  opacity: 0.8;
  transform: scale(1.03);
}

.app-icon:hover img {
  transform: translateY(-4px) scale(1.03);
  filter: drop-shadow(0 0 14px rgba(0, 255, 255, 0.85));
}

.app-icon:hover .app-label {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.55);
}

.app-icon:active {
  transform: translateY(2px) scale(0.96);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);


}

.app-icon:focus-visible {
  outline: 2px solid rgba(0, 246, 255, 0.6);
  outline-offset: 3px;
}

#mq-app-launcher.show .app-icon {
  animation: appIconIn 0.28s ease forwards;
  opacity: 0;
}

#mq-app-launcher.show .app-icon:nth-child(1) { animation-delay: 0.02s; }
#mq-app-launcher.show .app-icon:nth-child(2) { animation-delay: 0.04s; }
#mq-app-launcher.show .app-icon:nth-child(3) { animation-delay: 0.06s; }
#mq-app-launcher.show .app-icon:nth-child(4) { animation-delay: 0.08s; }
#mq-app-launcher.show .app-icon:nth-child(5) { animation-delay: 0.1s; }
#mq-app-launcher.show .app-icon:nth-child(6) { animation-delay: 0.12s; }
#mq-app-launcher.show .app-icon:nth-child(7) { animation-delay: 0.14s; }
#mq-app-launcher.show .app-icon:nth-child(8) { animation-delay: 0.16s; }
#mq-app-launcher.show .app-icon:nth-child(9) { animation-delay: 0.18s; }

/* Highlighted app cards (QMask/QMail) */
.app-icon[data-app="qmask"]::before,
.app-icon[data-app="qmail"]::before {
  border-color: rgba(0, 246, 255, 0.45);
  box-shadow: 0 0 14px rgba(0, 246, 255, 0.35);
  animation: appCardPulse 6s ease-in-out infinite;
}

@keyframes appCardPulse {
  0%, 70%, 100% { opacity: 0.35; transform: scale(0.98); }
  80% { opacity: 0.7; transform: scale(1.02); }
  90% { opacity: 0.9; transform: scale(1.04); }
}

@keyframes appIconPulse {
  0%, 75%, 100% { filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.35)); }
  85% { filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.7)); }
}

@keyframes appIconIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

#preview-card {
  position: fixed;
  max-width: 400px;
  padding: 6px;
  border-radius: 14px;
  font-family: 'segoe ui', sans-serif;
  font-size: 0.9em;
  color: #00f6ff;
  background: rgba(0, 50, 70, 0.15);
  border: 1px solid rgba(0, 246, 255, 0.15);
  backdrop-filter: blur(18px) saturate(160%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000009 ;
  transform: scale(1.12);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5), 0 0 15px rgba(0, 255, 255, 0.4) inset;


}

#preview-card.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);

}



/* Final QCom Button Position - Bottom Right */







@media (max-width: 600px) {
  #mq-bottom-icons {
    justify-content: space-evenly; /* توزيع متساوٍ في الوضع الصغير */
    bottom: 16px;
    padding: 0;
  }

  .icon-button {
    width: 48px;
    height: 48px;
  }
}

/* الوضع العادي - شاشة كبيرة */
.dock-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: none;
  backdrop-filter: none;
  padding: 18px 0;
  border-top: none;
  box-shadow: none;
  z-index: 99999;
}

#mq-bottom-icons {
  display: flex;
  justify-content: space-between; /* ← الأيقونات تُدفع للأطراف */
  align-items: center;
  width: 100%;
  padding: 0 32px; /* ← مسافة بسيطة من الجانبين */
  box-sizing: border-box;
}

.pwa-prompt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 16, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000000;
}

.pwa-prompt {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100vw - 36px));
  background: rgba(8, 18, 30, 0.96);
  border: 1px solid rgba(0, 246, 255, 0.25);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 16px 18px;
  color: #e6f8ff;
  font-family: 'Orbitron', 'Segoe UI', sans-serif;
  z-index: 1000001;
}

.pwa-prompt__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.pwa-prompt__text {
  font-size: 0.8rem;
  color: rgba(230, 248, 255, 0.78);
  line-height: 1.45;
}

.pwa-prompt__actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.pwa-prompt__btn {
  border: 1px solid rgba(0, 246, 255, 0.35);
  background: rgba(0, 246, 255, 0.2);
  color: #06121b;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  cursor: pointer;
}

.pwa-prompt__btn--ghost {
  background: rgba(0, 246, 255, 0.06);
  color: #c9fbff;
}


.icon-button {
  width: 45px;
  height: 45px;
  position: relative;
  border-radius: 16px;
  background: rgba(0, 60, 100, 0.25);
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 12px rgba(0, 255, 255, 0.2),
    inset 0 0 10px rgba(0, 255, 255, 0.05);
  padding: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 255, 255, 0.12);
  -webkit-tap-highlight-color: transparent;
}

.icon-button.has-unread {
  border-color: rgba(255, 86, 86, 0.5);
  box-shadow:
    0 0 18px rgba(255, 86, 86, 0.45),
    inset 0 0 12px rgba(255, 86, 86, 0.2);
}

.icon-button.has-unread img {
  filter: drop-shadow(0 0 10px rgba(255, 86, 86, 0.7));
}

#mq-app-launcher-button::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  border: 1px solid rgba(0, 246, 255, 0.35);
  box-shadow: 0 0 18px rgba(0, 246, 255, 0.35);
  opacity: 0;
  animation: appLauncherPulse 6s ease-in-out infinite;
  pointer-events: none;
}

#mq-app-launcher-button::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 22px;
  border: 1px dashed rgba(0, 246, 255, 0.35);
  opacity: 0.55;
  animation: appLauncherOrbit 9s linear infinite;
  pointer-events: none;
}

#mq-app-launcher-button:hover {
  box-shadow: 0 0 36px rgba(0, 255, 255, 0.45), 0 0 16px rgba(0, 255, 255, 0.3) inset;
}

#mq-app-launcher-button:hover img {
  filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.75));
}

@keyframes appLauncherPulse {
  0%, 80%, 100% { opacity: 0; transform: scale(0.98); }
  85% { opacity: 0.6; transform: scale(1.03); }
  92% { opacity: 0.9; transform: scale(1.06); }
}

@keyframes appLauncherOrbit {
  0% { transform: rotate(0deg); opacity: 0.25; }
  50% { opacity: 0.6; }
  100% { transform: rotate(360deg); opacity: 0.25; }
}

@keyframes appUnreadPulse {
  0%, 100% { transform: scale(1); opacity: 0.65; }
  50% { transform: scale(1.02); opacity: 1; }
}

.icon-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.5));
}

.icon-button:hover {
  transform: scale(1.12);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5), 0 0 15px rgba(0, 255, 255, 0.4) inset;
}

.icon-button .spider-tooltip {
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  background: rgba(0, 30, 50, 0.95);
  color: #00f6ff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  transform: translateY(-50%);
}

.icon-button:hover .spider-tooltip {
  opacity: 1;
}

.dock-fade {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.dock-fade.show {
  opacity: 1;
}

@media (hover: none) and (pointer: coarse) {
  .icon-button:hover .spider-tooltip,
  .icon-button:active .spider-tooltip {
    opacity: 0;
  }
  .icon-button.tooltip-peek .spider-tooltip {
    opacity: 1;
  }
  body.dock-tooltip-peek #mq-app-launcher-button .spider-tooltip {
    opacity: 1;
    animation: tooltipPeek 1s ease-out forwards;
  }
  .icon-button:hover {
    transform: none;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.2), inset 0 0 10px rgba(0, 255, 255, 0.05);
  }
  .icon-button:hover img {
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.5));
  }
}

@keyframes tooltipPeek {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}



#btnAI img {
  width: 22px;
  filter: drop-shadow(0 0 2px #00f0ff);
  transition: transform 0.2s ease, filter 0.2s ease;
}

#btnAI:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px #00ffff);
}


.ai-panel.glassy {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 360px;
  background: radial-gradient(140% 120% at 10% 0%, rgba(25, 180, 255, 0.18), transparent 55%),
    linear-gradient(145deg, rgba(2, 12, 24, 0.95), rgba(0, 30, 55, 0.88));
  border: 1px solid rgba(115, 230, 255, 0.35);
  border-radius: 26px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 15, 30, 0.55), 0 0 0 1px rgba(0, 255, 255, 0.08);
  animation: slideIn 0.3s ease-out;
  z-index: 1000;
  padding: 16px;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  color: #dff6ff;
}

.ai-panel.glassy::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  border: 1px dashed rgba(0, 255, 255, 0.18);
  pointer-events: none;
}

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

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

.ai-header h3 {
  font-size: 16px;
  color: #9ff7ff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.ai-header img.icon {
  width: 34px;
  filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.4));
}

.ai-header button {
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.2);
  color: #aaf7ff;
  font-size: 20px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

#aiAnalyticsBtn {
  font-size: 16px;
  letter-spacing: 1px;
}

.ai-header button:hover {
  transform: translateY(-1px);
  background: rgba(0, 255, 255, 0.18);
}

.ai-panel .chat-messages {
  max-height: 240px;
  overflow-y: auto;
  padding: 10px 8px 2px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.02));
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-panel .ai-msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 18px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(120, 230, 255, 0.22);
}

.ai-panel .ai-msg::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  bottom: -4px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: inherit;
  border-left: inherit;
  border-bottom: inherit;
  left: 14px;
}

.ai-panel .ai-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0, 255, 144, 0.16), rgba(0, 150, 255, 0.18));
  border-color: rgba(0, 255, 144, 0.35);
  color: #eafff7;
}

.ai-panel .ai-msg.user::after {
  left: auto;
  right: 14px;
  border-left: none;
  border-right: inherit;
  border-bottom: inherit;
}

.ai-panel .ai-msg.bot {
  align-self: flex-start;
}

.ai-panel .ai-msg.error {
  align-self: flex-start;
  background: rgba(255, 70, 70, 0.16);
  border-color: rgba(255, 120, 120, 0.35);
  color: #ffd6d6;
}

.ai-panel .chat-input {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ai-panel .chat-input input {
  flex: 1;
  padding: 12px 14px;
  background: rgba(0, 20, 35, 0.9);
  border: 1px solid rgba(120, 230, 255, 0.25);
  color: #eafcff;
  border-radius: 999px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.ai-panel .chat-input input:focus {
  border-color: rgba(120, 230, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 220, 255, 0.12);
}

.ai-panel .chat-input button {
  background: linear-gradient(150deg, #00f6ff, #00c2ff);
  border: none;
  color: #01232c;
  font-weight: 700;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0, 210, 255, 0.3);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.ai-panel .chat-input button:hover {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.05);
}

.ai-analytics {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(0, 12, 20, 0.7);
  border: 1px solid rgba(90, 200, 255, 0.2);
  color: #dff6ff;
  font-size: 12px;
}

.ai-analytics__title {
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #9fe9ff;
}

.ai-analytics__summary {
  margin-bottom: 8px;
  color: #b9f1ff;
}

.ai-analytics__row {
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.08);
  margin-bottom: 6px;
}

.ai-analytics__empty {
  color: rgba(223, 246, 255, 0.6);
}

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



  a {
    pointer-events: auto !important;
    cursor: pointer;
    text-decoration: underline;
    word-break: break-all;
  }
.app-icon:hover::before {
  opacity: 0.6;
}
