/* ==========================================================================
   Sticky Bar — barra fixa no bottom
   ========================================================================== */

.ai-stk {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  pointer-events: none;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 500ms ease;
  font-family: var(--font-sans, "Archivo", system-ui, sans-serif);
}

.ai-stk--visible {
  transform: translateY(0);
  opacity: 1;
}

/* Por padrão a barra fica escondida no mobile.
   O toggle "Mostrar no mobile" adiciona a classe --show-mobile pra opt-in. */
@media (max-width: 639.98px) {
  .ai-stk:not(.ai-stk--show-mobile) { display: none !important; }
}

.ai-stk__inner {
  pointer-events: auto;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 0.75rem 0.75rem;
}

@media (min-width: 640px) {
  .ai-stk__inner { padding: 0 1.5rem 1rem; }
}

.ai-stk__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

@media (min-width: 640px) {
  .ai-stk__bar { padding: 1rem; }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .ai-stk__bar { background-color: rgba(10, 31, 61, 0.95) !important; }
}

/* --- Info ---------------------------------------------------------------- */

.ai-stk__info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.ai-stk__info--desktop-only { display: none; }

@media (min-width: 640px) {
  .ai-stk__info--desktop-only { display: flex; }
}

.ai-stk__info-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

.ai-stk__info-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Buttons ------------------------------------------------------------- */

.ai-stk__buttons {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .ai-stk__buttons { flex: none; }
}

.ai-stk__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 200ms, background-color 200ms;
  border: 1px solid transparent;
}

.ai-stk__btn:hover { transform: translateY(-1px); }

.ai-stk__btn--primary {
  color: #ffffff;
  flex: 1;
  box-shadow: 0 8px 20px rgba(255, 78, 0, 0.35);
}

@media (min-width: 640px) {
  .ai-stk__btn--primary { flex: none; }
}

.ai-stk__btn--primary:hover {
  box-shadow: 0 12px 26px rgba(255, 78, 0, 0.45);
}

.ai-stk__btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ai-stk__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ai-stk__btn--desktop-only { display: none; }

@media (min-width: 640px) {
  .ai-stk__btn--desktop-only { display: inline-flex; }
}
