.phos-instagram-cta {
  position: fixed;
  z-index: 9998;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.phos-instagram-cta--visible {
  pointer-events: auto;
  opacity: 1;
}

.phos-instagram-cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.phos-instagram-cta__content {
  position: relative;
  z-index: 2;
  background: #171513;
  border: 1px solid rgba(198, 169, 138, 0.5);
  border-radius: 12px;
  padding: clamp(32px, 5vw, 48px);
  max-width: 420px;
  width: 90vw;
  margin: 0 16px 16px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.phos-instagram-cta__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(244, 240, 233, 0.6);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.phos-instagram-cta__close:hover {
  color: #ece6db;
}

.phos-instagram-cta__close:focus-visible {
  outline: 2px solid #f4f0e9;
  outline-offset: 3px;
  border-radius: 4px;
}

.phos-instagram-cta__icon {
  margin: 0 0 24px;
  color: #d0ad8a;
  display: flex;
  justify-content: center;
}

.phos-instagram-cta__icon svg {
  width: 56px;
  height: 56px;
}

.phos-instagram-cta__content h2 {
  margin: 0 0 12px;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  color: #ece6db;
}

.phos-instagram-cta__content p {
  margin: 0 0 28px;
  color: rgba(244, 240, 233, 0.78);
  font-size: 0.95rem;
  line-height: 1.6;
}

.phos-instagram-cta__follow-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c6a98a;
  margin-bottom: 16px;
  text-align: center;
}

.phos-instagram-cta__buttons-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
}

.phos-instagram-cta__button {
  border-radius: 8px;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  gap: 16px;
  padding: 12px 16px;
}

.phos-instagram-cta__button:focus-visible {
  outline: 2px solid #f4f0e9;
  outline-offset: 3px;
}

/* Botões de Perfil - RETANGULARES COM AVATAR CIRCULAR */
.phos-instagram-cta__button--profile {
  min-height: 80px;
  background-color: rgba(26, 24, 22, 0.9);
  border: 2px solid rgba(198, 169, 138, 0.5);
  position: relative;
  overflow: visible;
  width: 100%;
}

.phos-instagram-cta__button--profile:hover {
  border-color: #c6a98a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(198, 169, 138, 0.3);
}

.phos-instagram-cta__button--profile:hover .phos-instagram-cta__button-overlay {
  background-color: rgba(0, 0, 0, 0.1);
}

.phos-instagram-cta__button--profile:hover .phos-instagram-cta__button-handle {
  color: #f4f0e9;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.phos-instagram-cta__button-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(198, 169, 138, 0.6);
  flex-shrink: 0;
}

.phos-instagram-cta__button-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease;
  z-index: 1;
}

.phos-instagram-cta__button-handle {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  font-weight: 600;
  color: #f4f0e9;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

/* Botão Dismiss - MINIMAL E DISCRETO */
.phos-instagram-cta__button--dismiss {
  background: transparent;
  color: rgba(244, 240, 233, 0.4);
  border: none;
  font-size: 0.75rem;
  padding: 6px 8px;
  text-decoration: underline;
  text-underline-offset: 1px;
  font-weight: 400;
  min-height: auto;
  align-self: center;
  margin-top: 4px;
  padding: 0 !important;
  min-height: auto !important;
}

.phos-instagram-cta__button--dismiss:hover {
  color: rgba(244, 240, 233, 0.6);
}

@media (max-width: 480px) {
  .phos-instagram-cta__content {
    padding: 28px 20px;
  }

  .phos-instagram-cta__close {
    top: 12px;
    right: 12px;
  }

  .phos-instagram-cta__icon svg {
    width: 48px;
    height: 48px;
  }

  .phos-instagram-cta__content h2 {
    font-size: 1.4rem;
  }

  .phos-instagram-cta__button--primary {
    min-height: 56px;
    font-size: 1rem;
    padding: 16px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phos-instagram-cta,
  .phos-instagram-cta__content,
  .phos-instagram-cta__button {
    animation: none !important;
    transition: none !important;
  }
}
