/* AG Flash — Acesso Rápido (Águia IA) */
#agata-fab.ag-flash-fab {
  right: -10px;
  bottom: 7.5rem;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  padding-left: 4px;
  box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--accent, #D9A459) 55%, transparent);
  z-index: 60;
}
@media (min-width: 768px) {
  #agata-fab.ag-flash-fab { bottom: 2rem; right: -8px; }
}
#agata-fab.ag-flash-fab-open {
  right: 1.25rem;
  bottom: calc(380px + 0.75rem);
}
@media (min-width: 768px) {
  #agata-fab.ag-flash-fab-open { right: 2rem; }
}
#agata-fab.ag-flash-fab::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--accent, #D9A459);
  opacity: 0.35;
  animation: agFlashPing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: -1;
}
#agata-fab.ag-flash-fab.ag-flash-fab-first::after {
  opacity: 0.55;
  animation: agFlashPingStrong 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
#agata-fab.ag-flash-fab-open::after { display: none; }
@keyframes agFlashPing {
  75%, 100% { transform: scale(1.55); opacity: 0; }
}
@keyframes agFlashPingStrong {
  75%, 100% { transform: scale(1.9); opacity: 0; }
}

/* Seta / hint: arrastar pra cima → falar com a Águia */
#ag-flash-drag-hint {
  position: fixed;
  z-index: 61;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  color: #F0D9A8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
#ag-flash-drag-hint.ag-flash-drag-hint-on {
  opacity: 1;
  transform: translate(-50%, -100%) translateY(0);
}
#ag-flash-drag-hint.ag-flash-drag-hint-ready {
  color: #fff;
}
#ag-flash-drag-hint .ag-flash-drag-arrow {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 164, 89, 0.92);
  color: #0B0F17;
  font-size: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  animation: agFlashDragBounce 1.1s ease-in-out infinite;
}
#ag-flash-drag-hint.ag-flash-drag-hint-ready .ag-flash-drag-arrow {
  background: #fff;
  animation: none;
  transform: scale(1.08);
}
#ag-flash-drag-hint .ag-flash-drag-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(19, 26, 37, 0.88);
  border: 1px solid rgba(217, 164, 89, 0.35);
  padding: 3px 8px;
  border-radius: 999px;
}
@keyframes agFlashDragBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

#agata-fab.ag-flash-fab.ag-flash-fab-dragging {
  transition: none !important;
  cursor: grabbing;
}
#agata-fab.ag-flash-fab.ag-flash-fab-drag-ready {
  box-shadow: 0 14px 28px -4px rgba(217, 164, 89, 0.65);
}

#ag-flash-tip {
  position: fixed;
  right: 52px;
  bottom: calc(7.5rem + 8px);
  z-index: 61;
  max-width: 200px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #1B2432;
  color: #E8E6DF;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
@media (min-width: 768px) {
  #ag-flash-tip { bottom: calc(2rem + 8px); right: 56px; }
}
#ag-flash-tip.ag-flash-tip-on {
  opacity: 1;
  transform: translateX(0);
}
#ag-flash-tip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  margin-top: -6px;
  border: 6px solid transparent;
  border-left-color: #1B2432;
}

#ag-flash-install-toast { display: none !important; }

.ag-flash-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ag-flash-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(217, 164, 89, 0.55);
  background: linear-gradient(135deg, #D9A459, #C4923E);
  color: #0B0F17;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(217, 164, 89, 0.45);
  animation: agFlashInstallPulse 2.2s ease-out infinite;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.ag-flash-install-btn:hover { filter: brightness(1.06); }
.ag-flash-install-btn:active { transform: scale(0.97); }
.ag-flash-install-btn i { font-size: 12px; }
.ag-flash-install-btn.ag-flash-install-installed {
  animation: none;
  background: rgba(217, 164, 89, 0.18);
  color: #F0D9A8;
  border-color: rgba(217, 164, 89, 0.4);
}
@keyframes agFlashInstallPulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 164, 89, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(217, 164, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 164, 89, 0); }
}

.ag-flash-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #E8E6DF;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.ag-flash-home-btn:hover {
  background: rgba(217, 164, 89, 0.16);
  border-color: rgba(217, 164, 89, 0.45);
  color: #F0D9A8;
}
.ag-flash-home-btn:active { transform: scale(0.97); }
.ag-flash-home-btn i { font-size: 12px; }

.ag-flash-tile-icon-photo {
  overflow: hidden;
  padding: 0 !important;
}
.ag-flash-chat-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ag-flash-repeat-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  border: none;
  background: #D9A459;
  color: #0B0F17;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}
.ag-flash-repeat-btn:hover { filter: brightness(1.06); }
.ag-flash-repeat-btn:active { transform: scale(0.97); }

#ag-flash-backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: 65;
}
#ag-flash-backdrop.ag-flash-backdrop-on { opacity: 1; }

#ag-flash-sheet {
  height: min(380px, 70dvh);
  background: #131A25;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 66;
}
#ag-flash-sheet.ag-flash-sheet-open { transform: translateY(0); }

.ag-flash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.ag-flash-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 12px;
  background: #1B2432;
  border: none;
  cursor: pointer;
  color: #E8E6DF;
}
.ag-flash-tile:hover { filter: brightness(1.08); }
.ag-flash-tile-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 164, 89, 0.15);
  font-size: 14px;
}
.ag-flash-tile-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}
/* Pedido do Carlos: "Conversar com a Águia" agora é um quadradinho normal
   dentro do grid (ao lado do card de Delivery) em vez de uma barra larga
   sozinha embaixo — deixa o painel mais simples e compacto. */
.ag-flash-tile-chat {
  gap: 6px;
}
/* Produto da plataforma (Vida Fitness): tile colorido e em destaque */
.ag-flash-tile-promoted {
  border: 1px solid color-mix(in srgb, var(--ag-tile-accent, #22c55e) 55%, transparent);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--ag-tile-accent, #22c55e) 28%, #1B2432),
    #1B2432 70%
  );
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ag-tile-accent, #22c55e) 18%, transparent);
}
.ag-flash-tile-promoted .ag-flash-tile-icon {
  background: color-mix(in srgb, var(--ag-tile-accent, #22c55e) 22%, transparent);
}
.ag-flash-tile-badge {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ag-tile-accent, #22c55e);
  line-height: 1;
}
.ag-flash-promo {
  padding: 4px 2px 8px;
}
.ag-flash-promo-card {
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--ag-promo-accent, #22c55e) 45%, transparent);
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--ag-promo-accent, #22c55e) 18%, #131A25),
    #131A25 65%
  );
  padding: 14px 14px 12px;
}
.ag-flash-promo-title {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 4px;
}
.ag-flash-promo-blurb {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 10px;
}
.ag-flash-promo-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 6px;
}
.ag-flash-promo-list li {
  font-size: 11px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ag-flash-promo-list li i {
  color: var(--ag-promo-accent, #22c55e);
  width: 14px;
  text-align: center;
}
.ag-flash-promo-cta {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  color: #04140c;
  background: var(--ag-promo-accent, #22c55e);
  margin-bottom: 8px;
}
.ag-flash-promo-cta.secondary {
  background: transparent;
  color: var(--ag-promo-accent, #22c55e);
  border: 1px solid color-mix(in srgb, var(--ag-promo-accent, #22c55e) 50%, transparent);
}
.ag-flash-link-all {
  width: 100%;
  text-align: center;
  font-size: 12px;
  margin-top: 14px;
  padding: 10px;
  border-radius: 12px;
  background: #1B2432;
  color: #D9A459;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.ag-flash-store-list { display: flex; flex-direction: column; gap: 10px; }
.ag-flash-store-row { display: flex; align-items: center; gap: 6px; }
.ag-flash-store-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: inherit;
  text-decoration: none;
}
.ag-flash-store-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.ag-flash-heart {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.ag-flash-menu-row {
  width: 100%;
  text-align: left;
  padding: 12px 0;
  font-size: 14px;
  color: #E8E6DF;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  cursor: pointer;
}
.ag-flash-order {
  padding: 12px;
  border-radius: 12px;
  background: #1B2432;
  margin-bottom: 10px;
}
.ag-flash-order-clickable { cursor: pointer; transition: background 0.15s ease; }
.ag-flash-order-clickable:hover { background: #212B3B; }

/* Pedido do Carlos: guia visual do status do pedido (pago → preparando →
   a caminho → entregue), colorindo à medida que avança. */
.ag-flash-order-steps {
  display: flex;
  align-items: flex-start;
  margin: 10px 0 2px;
}
.ag-flash-order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  width: 44px;
}
.ag-flash-order-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: #263049;
  color: #5b6785;
  transition: background 0.25s ease, color 0.25s ease;
}
.ag-flash-order-step-label {
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  color: #5b6785;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ag-flash-order-step-line {
  flex: 1 1 auto;
  height: 2px;
  background: #263049;
  margin-top: 10px;
  transition: background 0.25s ease;
}
.ag-flash-order-step-line-done { background: #D9A459; }
.ag-flash-order-step-done .ag-flash-order-step-dot {
  background: #D9A459;
  color: #0B0F17;
}
.ag-flash-order-step-done .ag-flash-order-step-label { color: #D9A459; }
.ag-flash-order-step-active .ag-flash-order-step-dot {
  background: #D9A459;
  color: #0B0F17;
  box-shadow: 0 0 0 3px rgba(217, 164, 89, 0.25);
}
.ag-flash-order-step-active .ag-flash-order-step-label { color: #F0D9A8; }
.ag-flash-order-cancelled {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 2px;
  font-size: 11px;
  font-weight: 700;
  color: #f87171;
}
.ag-flash-dock-active { color: #D9A459 !important; }
.ag-flash-invite {
  padding: 14px;
  border-radius: 14px;
  background: rgba(217, 164, 89, 0.12);
  border: 1px solid rgba(217, 164, 89, 0.28);
  margin-top: 12px;
}
.ag-flash-invite p { margin: 0; }
.ag-flash-invite a,
.ag-flash-invite button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #D9A459;
  color: #0B0F17;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.ag-flash-status-open { color: #4ade80; }
.ag-flash-status-closed { color: #94a3b8; }

/* Chat público (concierge guest) */
#ag-public-chat {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 72;
  width: min(380px, calc(100vw - 1.5rem));
}
@media (min-width: 768px) {
  #ag-public-chat { bottom: 6rem; right: 2rem; }
}
#ag-public-chat.hidden { display: none !important; }
.ag-public-chat-card {
  display: flex;
  flex-direction: column;
  max-height: min(520px, 72dvh);
  border-radius: 18px;
  overflow: hidden;
  background: #131A25;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.ag-public-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #D9A459, #B9843C);
}
.ag-public-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ag-public-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ag-public-chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ag-public-msg { display: flex; }
.ag-public-msg-user { justify-content: flex-end; }
.ag-public-msg-bot { justify-content: flex-start; }
.ag-public-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  color: #E8E6DF;
  background: #1B2432;
  white-space: pre-wrap;
}
.ag-public-msg-user .ag-public-bubble {
  background: #D9A459;
  color: #0B0F17;
  border-bottom-right-radius: 4px;
}
.ag-public-msg-bot .ag-public-bubble { border-bottom-left-radius: 4px; }
.ag-public-chat-suggestions {
  padding: 0 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.ag-public-sug-label {
  margin: 6px 0 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8B93A1;
}
.ag-public-sug-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(217, 164, 89, 0.1);
  border: 1px solid rgba(217, 164, 89, 0.25);
  text-decoration: none;
}
.ag-public-sug-name {
  font-size: 12px;
  font-weight: 700;
  color: #F0D9A8;
}
.ag-public-sug-meta {
  font-size: 10px;
  color: #8B93A1;
}
.ag-public-chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0f172a;
}
.ag-public-chat-input-row input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #131A25;
  color: #E8E6DF;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
}
.ag-public-chat-input-row input:focus {
  border-color: rgba(217, 164, 89, 0.5);
}
.ag-public-chat-input-row button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: #D9A459;
  color: #0B0F17;
  cursor: pointer;
}
