#flovo-overlay{position:fixed;inset:0;background:#000000b8;z-index:9998;animation:fvFade .3s ease both}@keyframes fvFade{0%{opacity:0}to{opacity:1}}#flovo-banner{position:fixed;bottom:0;left:0;right:0;z-index:9999;background:#0f0f0f;border-radius:22px 22px 0 0;border-top:1px solid #7c3aed;border-left:1px solid #1e1e1e;border-right:1px solid #1e1e1e;padding:0 0 28px;animation:fvUp .45s cubic-bezier(.22,1,.36,1) both;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;direction:rtl}@keyframes fvUp{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}.fv-handle{display:flex;justify-content:center;padding:12px 0 6px}.fv-handle span{width:38px;height:4px;background:#2a2a2a;border-radius:2px;display:block}.fv-inner{padding:10px 20px 0}.fv-badge{display:inline-flex;align-items:center;gap:5px;background:#1a0e2e;border:1px solid #4a1fa8;color:#a78bfa;font-size:11px;font-weight:500;padding:4px 10px;border-radius:20px;margin-bottom:12px}.fv-badge i{font-size:12px}.fv-row{display:flex;align-items:center;gap:14px;margin-bottom:16px}.fv-icon{width:62px;height:62px;border-radius:16px;overflow:hidden;flex-shrink:0;border:1px solid #2e1a5a;background:#1a0e2e}.fv-icon img{width:100%;height:100%;object-fit:cover;border-radius:15px}.fv-name{font-size:18px;font-weight:700;color:#fff;letter-spacing:-.3px}.fv-cat{font-size:11px;color:#7c3aed;font-weight:500;margin-top:2px;text-transform:uppercase;letter-spacing:.8px}.fv-desc{font-size:13px;color:#888;margin-top:4px;line-height:1.45}.fv-stars{display:flex;align-items:center;gap:8px;margin-bottom:16px}.fv-star{width:12px;height:12px;fill:#7c3aed;display:inline-block}.fv-star-e{fill:#2a2a2a}.fv-rinfo{font-size:12px;color:#555}.fv-div{height:1px;background:#1a1a1a;margin:0 0 14px}.fv-dev{display:flex;align-items:center;gap:8px;margin-bottom:16px}.fv-dev i{font-size:18px;color:#7c3aed}.fv-dev span{font-size:12px;color:#666}.fv-btn{width:100%;padding:14px 0;background:#7c3aed;color:#fff;border:none;border-radius:13px;font-size:15px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:10px}.fv-btn i{font-size:18px}.fv-skip{width:100%;padding:12px 0;background:transparent;color:#444;border:1px solid #1e1e1e;border-radius:13px;font-size:14px;cursor:pointer}

/* ===== PWA Mobile Refinements (index-gateway-dev only) ===== */
@media (max-width: 768px) {
  #composer, .composer, .input-bar, .chat-input-wrap {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .tool-btn, .action-pill, .chip-btn, .sel-bar button, .composer button {
    min-height: 44px !important;
    min-width: 44px !important;
  }

  html, body {
    height: 100%;
    overscroll-behavior-y: contain;
  }

  #intelWelcome, .welcome-screen, .wl-greeting {
    justify-content: flex-start !important;
    padding-top: 16px !important;
  }

  input, textarea, select {
    font-size: 16px !important;
  }
}

/* ===== Channel Section - App-like compact design (mobile only) ===== */
@media (max-width: 768px) {
  .ch-link-banner.linked {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 50px;
  }
  .ch-link-banner.linked .ch-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .ch-link-banner.linked .ch-link-sub {
    display: none;
  }
  .ch-link-banner.linked .ch-link-title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ch-link-banner.linked .ch-link-arrow {
    display: none;
  }
  .ch-add-channel-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--p, #7c3aed);
    color: #fff;
    border: none;
    margin-right: auto;
  }
  .ch-add-channel-btn:active {
    opacity: 0.8;
  }
}

/* زرار + خاص بالموبايل بس - مخفي على سطح المكتب افتراضيًا */
.ch-add-channel-btn {
  display: none;
}
@media (max-width: 768px) {
  .ch-add-channel-btn {
    display: flex;
  }
}

/* ===== ويدجت توليد الصور داخل الشات ===== */
.img-gen-widget{margin-top:10px;max-width:340px}
.img-gen-shimmer{width:100%;aspect-ratio:1/1;border-radius:14px;overflow:hidden;position:relative;background:#1a1a1f}
.img-gen-shimmer-fx{position:absolute;inset:0;background:linear-gradient(110deg,#1a1a1f 30%,#2a2a32 50%,#1a1a1f 70%);background-size:200% 100%;animation:imgGenShimmer 1.8s infinite}
@keyframes imgGenShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.img-gen-wrap{position:relative;border-radius:14px;overflow:hidden;cursor:pointer;line-height:0}
.img-gen-wrap img{width:100%;height:auto;display:block;border-radius:14px;transition:transform .2s ease}
.img-gen-wrap:hover img{transform:scale(1.02)}
.img-gen-dl{position:absolute;bottom:10px;left:10px;width:34px;height:34px;border-radius:9px;background:rgba(20,20,24,.75);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;opacity:0;transform:translateY(6px);transition:all .18s ease;text-decoration:none;border:1px solid rgba(255,255,255,.1)}
.img-gen-wrap:hover .img-gen-dl{opacity:1;transform:translateY(0)}
.img-gen-dl:hover{background:#7c3aed}
.img-gen-error{margin-top:8px;padding:12px 14px;background:rgba(220,38,38,.08);border:1px solid rgba(220,38,38,.2);border-radius:10px;color:#f87171;font-size:12.5px}
