/* ===== MODAL DE VERIFICAÇÃO INSTAGRAM ===== */

.igmodal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.8) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 1000 !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  font-family: "Inter", Arial, sans-serif !important;
  touch-action: none !important;
}

.igmodal-overlay.show {
  display: flex !important;
}

.igmodal-content {
  background: #0a0a0f !important;
  border: 2px solid #5e17eb !important;
  border-radius: 20px !important;
  max-width: 500px !important;
  width: 100% !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 30px 30px 50px 30px !important;
  position: relative !important;
  box-sizing: border-box !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth !important;
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
}

.igmodal-close {
  position: absolute !important;
  top: 15px !important;
  right: 20px !important;
  background: none !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 24px !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
}

.igmodal-close:hover {
  color: #5e17eb !important;
}

/* Header do modal */
.igmodal-header {
  text-align: center !important;
  margin-bottom: 25px !important;
}

.igmodal-header h3 {
  font-size: 24px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #5e17eb, #ff0080) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  margin: 0 0 10px 0 !important;
}

.igmodal-header p {
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  margin: 0 !important;
}

/* Campo de busca */
.igmodal-search {
  margin-bottom: 25px !important;
}

#igUserInput {
  width: 100% !important;
  padding: 12px 15px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 10px !important;
  color: white !important;
  font-size: 14px !important;
  margin-bottom: 15px !important;
  box-sizing: border-box !important;
  outline: none !important;
}

#igUserInput:focus {
  border-color: #5e17eb !important;
}

#igUserInput::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.igmodal-search-btn {
  width: 100% !important;
  padding: 12px 20px !important;
  background: linear-gradient(135deg, #5e17eb, #ff0080) !important;
  color: white !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  box-sizing: border-box !important;
}

.igmodal-search-btn:hover {
  opacity: 0.9 !important;
}

/* Loading e erro */
.igmodal-loading {
  text-align: center !important;
  margin-top: 15px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14px !important;
}

.igmodal-error {
  color: #ff4444 !important;
  font-size: 14px !important;
  margin-top: 15px !important;
  text-align: center !important;
  background: rgba(255, 68, 68, 0.1) !important;
  border: 1px solid rgba(255, 68, 68, 0.3) !important;
  border-radius: 8px !important;
  padding: 12px !important;
}

/* Perfil encontrado */
.igmodal-profile {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  margin-bottom: 20px !important;
  padding: 20px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 15px !important;
}

.igmodal-image {
  width: 80px !important;
  height: 80px !important;
  flex-shrink: 0 !important;
}

.igmodal-placeholder {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #5e17eb, #ff0080) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  color: white !important;
  font-weight: bold !important;
}

.igmodal-profile img {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  border: 2px solid #5e17eb !important;
  object-fit: cover !important;
}

/* Informações do perfil */
.igmodal-info {
  flex-grow: 1 !important;
}

.igmodal-username {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: white !important;
  margin-bottom: 5px !important;
}

.igmodal-bio {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  margin-bottom: 10px !important;
  line-height: 1.3 !important;
}

.igmodal-stats {
  display: flex !important;
  gap: 15px !important;
}

.igmodal-stat {
  text-align: center !important;
}

.igmodal-stat span:first-child {
  display: block !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #5e17eb !important;
}

.igmodal-stat span:last-child {
  font-size: 10px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  text-transform: uppercase !important;
}

/* Aviso de perfil privado */
.igmodal-private {
  background: rgba(255, 193, 7, 0.1) !important;
  border: 1px solid rgba(255, 193, 7, 0.3) !important;
  border-radius: 10px !important;
  padding: 15px !important;
  margin-bottom: 20px !important;
  text-align: center !important;
  color: #ffc107 !important;
  font-size: 14px !important;
}

/* Botões de ação */
.igmodal-actions {
  display: flex !important;
  gap: 15px !important;
  margin-bottom: 20px !important;
}

.igmodal-cancel,
.igmodal-confirm {
  flex: 1 !important;
  padding: 12px 20px !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  box-sizing: border-box !important;
  margin-bottom: 30px !important;
}

.igmodal-cancel {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.igmodal-cancel:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.igmodal-confirm {
  background: linear-gradient(135deg, #5e17eb, #ff0080) !important;
  color: white !important;
}

.igmodal-confirm:hover {
  opacity: 0.9 !important;
}

.igmodal-confirm:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* ===== RESPONSIVIDADE DO MODAL ===== */

@media (max-width: 768px) {
  .igmodal-content {
    padding: 20px 20px 50px 20px !important;
    margin: 10px !important;
  }

  .igmodal-actions {
    gap: 2px !important;
  }

  .igmodal-profile {
    flex-direction: column !important;
    text-align: center !important;
  }

  .igmodal-stats {
    justify-content: center !important;
  }

  .igmodal-actions {
    flex-direction: column !important;
  }
}

/* ===== SPINNER - ADICIONAR DEPOIS DA MEDIA QUERY ===== */

/* Loading melhorado com spinner */
.igmodal-loading {
  text-align: center !important;
  margin-top: 20px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14px !important;
}

/* Spinner roxo animado */
.igmodal-spinner {
  width: 50px !important;
  height: 50px !important;
  border: 3px solid rgba(255, 255, 255, 0.1) !important;
  border-top-color: #5e17eb !important;
  border-radius: 50% !important;
  margin: 0 auto 15px !important;
  animation: igSpin 1s linear infinite !important;
}

/* Animação de rotação */
@keyframes igSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Texto do loading */
.igmodal-loading-text {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 14px !important;
  margin-top: 10px !important;
}

/* Animação de rotação */
@keyframes igSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Texto do loading */
.igmodal-loading-text {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 14px !important;
  margin-top: 10px !important;
}

/* Loading das postagens */
.igmodal-posts-loading {
  text-align: center !important;
  padding: 60px 20px !important;
}

.igmodal-posts-spinner {
  width: 60px !important;
  height: 60px !important;
  border: 3px solid rgba(255, 255, 255, 0.1) !important;
  border-top-color: #5e17eb !important;
  border-radius: 50% !important;
  margin: 0 auto 20px !important;
  animation: igSpin 1s linear infinite !important;
}

.igmodal-posts-loading-text {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 16px !important;
  margin-bottom: 10px !important;
}

.igmodal-posts-loading-subtext {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 14px !important;
}

@media (max-width: 768px) {
  .igmodal-overlay {
    align-items: flex-start !important;
    padding: 40px 10px !important;
  }
  .igmodal-content {
    max-height: 75vh !important;
    margin: 0 auto !important;
  }
}

/* Correção do botão fechar modal Instagram */
.igmodal-close {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  z-index: 10 !important;
}

/* Ajustar padding do conteúdo para não sobrepor */
.igmodal-content {
  padding-top: 50px !important;
}

/* Garantir que o header não fique embaixo do X */
.igmodal-header {
  margin-top: 10px !important;
}

/* Para a tela de posts também */
.igmodal-posts-header {
  padding-top: 10px !important;
}

/* ===== BLOQUEAR SCROLL DO FUNDO QUANDO MODAL ESTÁ ABERTO ===== */
body.modal-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* Garantir que o modal fique acima de TUDO */
.igmodal-overlay {
  z-index: 99999 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Quando o modal está visível */
.igmodal-overlay.show {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
}

/* Conteúdo do modal com scroll próprio */
.igmodal-content {
  max-height: 90vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  -webkit-overscroll-behavior: contain !important;
}

/* PREVENIR SCROLL NO iOS/MOBILE */
body:has(.igmodal-overlay.show) {
  position: fixed !important;
  width: 100% !important;
  overflow: hidden !important;
  touch-action: none !important;
}

/* Alternativa se :has() não funcionar */
body.modal-open {
  touch-action: none !important;
}

/* Ajuste da seta de scroll */
.scroll-hint {
  position: fixed !important;
  bottom: 40px !important;
}

#confettiCanvas {
  z-index: 999999 !important;
}

/* ===== MODAL TIKTOK - CSS COMPLETO ===== */

/* ===== VARIÁVEIS TIKTOK ===== */
:root {
  --tiktok-primary: #ff0050;
  --tiktok-secondary: #25f4ee;
  --tiktok-dark: #000000;
  --tiktok-gradient: linear-gradient(135deg, #ff0050, #25f4ee);
  --tiktok-glass: rgba(255, 255, 255, 0.06);
  --tiktok-border: rgba(255, 255, 255, 0.18);
}

/* ===== OVERLAY PRINCIPAL ===== */
.tiktok-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tiktok-modal-overlay.show {
  display: flex;
  opacity: 1;
}

/* ===== CONTAINER PRINCIPAL ===== */
.tiktok-modal-content {
  background: #0a0a0f;
  border: 2px solid var(--tiktok-primary);
  border-radius: 24px;
  width: min(95vw, 500px);
  max-height: 90vh;
  overflow-y: auto;
  color: #fff;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 60px rgba(255, 0, 80, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  -webkit-overflow-scrolling: touch;
}

/* ===== BOTÃO FECHAR ===== */
.tiktok-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.tiktok-modal-close:hover {
  background: rgba(255, 0, 80, 0.2);
  transform: rotate(90deg);
}

/* ===== HEADER DO MODAL ===== */
.tiktok-modal-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tiktok-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--tiktok-gradient);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.tiktok-modal-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px 0;
  background: var(--tiktok-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.tiktok-modal-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

/* ===== BUSCA DE PERFIL ===== */
.tiktok-search-container {
  margin-bottom: 25px;
}

.tiktok-input-group {
  display: flex;
  align-items: center;
  background: var(--tiktok-glass);
  border: 1px solid var(--tiktok-border);
  border-radius: 15px;
  padding: 0 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.tiktok-input-group:focus-within {
  border-color: var(--tiktok-primary);
  box-shadow: 0 0 0 3px rgba(255, 0, 80, 0.1);
}

.tiktok-at-symbol {
  color: var(--tiktok-primary);
  font-weight: 700;
  font-size: 18px;
  margin-right: 5px;
}

.tiktok-input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 15px 0;
  outline: none;
}

.tiktok-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.tiktok-search-btn {
  width: 100%;
  padding: 15px;
  background: var(--tiktok-gradient);
  border: none;
  border-radius: 15px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tiktok-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 0, 80, 0.4);
}

.tiktok-search-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===== DICA DE BUSCA ===== */
.tiktok-search-hint {
  background: rgba(37, 244, 238, 0.1);
  border: 1px solid rgba(37, 244, 238, 0.3);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
}

.tiktok-search-hint p {
  margin: 0 0 5px 0;
  font-size: 14px;
  line-height: 1.4;
}

.tiktok-search-hint code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--tiktok-secondary);
}

/* ===== RESULTADO DO PERFIL ===== */
.tiktok-result-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tiktok-result-header h3 {
  flex: 1;
  text-align: center;
  margin: 0;
  font-size: 20px;
  color: #fff;
}

.tiktok-back-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.tiktok-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--tiktok-primary);
}

/* ===== CARD DO PERFIL ===== */
.tiktok-profile-card {
  background: var(--tiktok-glass);
  border: 1px solid var(--tiktok-border);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 25px;
  text-align: center;
}

.tiktok-avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.tiktok-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--tiktok-primary);
}

.tiktok-verified {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: var(--tiktok-secondary);
  color: var(--tiktok-dark);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}

.tiktok-display-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 5px 0;
  color: #fff;
}

.tiktok-username {
  color: var(--tiktok-primary);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 15px 0;
}

.tiktok-bio {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 20px 0;
}

/* ===== ESTATÍSTICAS ===== */
.tiktok-stats {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 15px;
}

.tiktok-stat {
  text-align: center;
}

.tiktok-stat strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.tiktok-stat span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== AVISO PERFIL PRIVADO ===== */
.tiktok-private-warning {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 10px;
  padding: 12px;
  margin-top: 15px;
  text-align: left;
  font-size: 13px;
  color: #ffc107;
}

/* ===== SELEÇÃO DE VÍDEOS ===== */
.tiktok-videos-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tiktok-videos-header h3 {
  flex: 1;
  text-align: center;
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.tiktok-profile-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: var(--tiktok-glass);
  border-radius: 12px;
  margin-bottom: 20px;
}

.tiktok-profile-mini img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.tiktok-profile-mini span {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

.tiktok-videos-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  font-size: 15px;
}

/* ===== OPÇÃO DE LINK ===== */
.tiktok-link-option {
  background: var(--tiktok-glass);
  border: 1px solid var(--tiktok-border);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 25px;
}

.tiktok-link-option p {
  margin: 0 0 15px 0;
  font-size: 15px;
  text-align: center;
}

.tiktok-video-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 15px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.tiktok-video-input:focus {
  outline: none;
  border-color: var(--tiktok-primary);
  box-shadow: 0 0 0 3px rgba(255, 0, 80, 0.1);
}

.tiktok-video-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.tiktok-video-btn {
  width: 100%;
  padding: 12px;
  background: var(--tiktok-gradient);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tiktok-video-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(255, 0, 80, 0.3);
}

/* ===== INSTRUÇÕES ===== */
.tiktok-video-instructions {
  background: rgba(37, 244, 238, 0.1);
  border: 1px solid rgba(37, 244, 238, 0.2);
  border-radius: 12px;
  padding: 20px;
}

.tiktok-video-instructions h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: var(--tiktok-secondary);
}

.tiktok-video-instructions ol {
  margin: 0;
  padding-left: 20px;
}

.tiktok-video-instructions li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* ===== SELEÇÃO DE COMENTÁRIOS ===== */
.tiktok-comment-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tiktok-comment-header h3 {
  flex: 1;
  text-align: center;
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.tiktok-selection-info {
  background: var(--tiktok-glass);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 25px;
}

.tiktok-selection-info p {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.tiktok-selection-info a {
  color: var(--tiktok-primary);
  text-decoration: none;
  font-weight: 600;
}

.tiktok-selection-info a:hover {
  text-decoration: underline;
}

/* ===== OPÇÕES DE COMENTÁRIOS ===== */
.tiktok-comment-options {
  margin-bottom: 25px;
}

.tiktok-comment-options h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #fff;
}

.tiktok-comment-option {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 15px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  text-align: left;
}

.tiktok-comment-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--tiktok-primary);
}

/* ===== COMENTÁRIO PERSONALIZADO ===== */
.tiktok-comment-custom {
  background: var(--tiktok-glass);
  border: 1px solid var(--tiktok-border);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 25px;
}

.tiktok-comment-custom h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #fff;
}

.tiktok-comment-custom textarea {
  width: 100%;
  min-height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 15px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: all 0.3s ease;
}

.tiktok-comment-custom textarea:focus {
  outline: none;
  border-color: var(--tiktok-primary);
  box-shadow: 0 0 0 3px rgba(255, 0, 80, 0.1);
}

.tiktok-comment-custom textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.tiktok-char-count {
  text-align: right;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 8px 0 15px 0;
}

.tiktok-comment-clear {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tiktok-comment-clear:hover {
  border-color: var(--tiktok-primary);
  color: var(--tiktok-primary);
}

/* ===== BOTÕES DE AÇÃO ===== */
.tiktok-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.tiktok-btn-secondary,
.tiktok-btn-primary {
  padding: 15px 25px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 700;
  flex: 1;
  cursor: pointer;
  transition: 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tiktok-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.tiktok-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.tiktok-btn-primary {
  background: var(--tiktok-gradient);
  border: none;
  color: #fff;
}

.tiktok-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tiktok-btn-primary:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 0, 80, 0.4);
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
  .tiktok-modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 10px;
  }

  .tiktok-modal-content {
    max-height: none;
    border-radius: 18px;
    padding: 20px 15px;
    margin: 20px 0;
  }

  .tiktok-modal-title {
    font-size: 20px;
  }

  .tiktok-stats {
    gap: 15px;
  }

  .tiktok-stat strong {
    font-size: 16px;
  }

  .tiktok-modal-actions {
    flex-direction: column;
  }

  .tiktok-btn-primary {
    order: 1;
  }

  .tiktok-btn-secondary {
    order: 2;
  }
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
.tiktok-modal-content::-webkit-scrollbar {
  width: 6px;
}

.tiktok-modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.tiktok-modal-content::-webkit-scrollbar-thumb {
  background: var(--tiktok-gradient);
  border-radius: 10px;
}

.tiktok-modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff0050, #25f4ee);
}

/* ===== ANIMAÇÕES ===== */
@keyframes tiktokPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.tiktok-badge {
  animation: tiktokPulse 2s infinite;
}

/* ===== BLOQUEIO DE SCROLL ===== */
body:has(.tiktok-modal-overlay.show) {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
}

/* Fallback se :has() não funcionar */
body.tiktok-modal-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
}

/* ORDEM DOS BOTÕES INSTAGRAM IGUAL TIKTOK */
@media (min-width: 769px) {
  .igmodal-actions {
    flex-direction: row !important;
  }
  .igmodal-cancel {
    order: 1 !important;
  }
  .igmodal-confirm {
    order: 2 !important;
  }
}

@media (max-width: 768px) {
  .igmodal-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .igmodal-confirm {
    order: 1 !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  .igmodal-cancel {
    order: 2 !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }
}
