/* Reset and Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #08090c;
  color: #f1f2f6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Background Premium Glow (Desktop decoration) */
.bg-blur-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.bg-blur-circle-1 {
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 42, 116, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  top: -10%;
  right: -5%;
  filter: blur(80px);
}

.bg-blur-circle-2 {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: -15%;
  left: -10%;
  filter: blur(100px);
}

/* App Layout Wrapper */
.app-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  padding: 0;
}

/* Live Stream Main Container (Full Screen / No Margins) */
.live-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: #12131a;
  overflow: hidden;
}

/* Video Background styling */
.live-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Dark gradient overlay for UI readability */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, 
                rgba(0, 0, 0, 0.6) 0%, 
                rgba(0, 0, 0, 0) 25%, 
                rgba(0, 0, 0, 0) 65%, 
                rgba(0, 0, 0, 0.7) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Top Header Bar */
.live-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Badges and Buttons */
.badge-online {
  background-color: #00e676;
  color: #08090c;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  animation: pulseGreen 2s infinite;
}

.badge-viewers {
  background: rgba(18, 19, 26, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
}

.streamer-badge-content {
  display: flex;
  flex-direction: column;
  gap: 2.5px;
  align-items: flex-start;
}

.streamer-location {
  font-size: 9px;
  color: #a2a8b5;
  font-weight: 500;
}

.icon {
  width: 13px;
  height: 13px;
}

.btn-icon {
  background: rgba(18, 19, 26, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.btn-icon .icon {
  width: 14px;
  height: 14px;
}

.btn-vip {
  background: linear-gradient(135deg, #ff2a74 0%, #8a2be2 100%);
  color: #fff;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 15px rgba(255, 42, 116, 0.4);
  transition: all 0.3s ease;
  animation: pulseGlow 2.5s infinite;
}

.btn-vip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 42, 116, 0.6);
}

/* Floating Hearts and Likes Animation */
.hearts-container {
  position: absolute;
  bottom: 90px;
  right: 16px;
  width: 60px;
  height: 300px;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}

.heart-animated {
  position: absolute;
  bottom: 0;
  right: 15px;
  font-size: 24px;
  opacity: 0;
  transform: scale(0.5);
  animation: floatHeart 2.5s ease-out forwards;
}

/* Chat Section */
.chat-wrapper {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 100%;
  padding: 0 16px 12px 16px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.chat-messages {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  pointer-events: auto;
}

.chat-messages::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

/* Glassmorphism Chat Bubble */
.chat-bubble {
  background: rgba(10, 11, 16, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  max-width: 85%;
  align-self: flex-start;
  font-size: 13.5px;
  line-height: 1.45;
  color: #e2e4e9;
  animation: messageSlideIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.chat-username {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Usernames colors */
.color-vip {
  color: #ff2a74; /* Alice (Streamer) Color */
}

.color-1 { color: #fbc02d; }
.color-2 { color: #29b6f6; }
.color-3 { color: #ab47bc; }
.color-4 { color: #9ccc65; }
.color-5 { color: #ffa726; }

/* System Status Bubble */
.chat-bubble.system-bubble {
  background: rgba(138, 43, 226, 0.25);
  border: 1px solid rgba(138, 43, 226, 0.3);
  align-self: center;
  max-width: 95%;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  color: #d1c4e9;
}

/* Floating Like Button */
.btn-like {
  align-self: flex-end;
  background: rgba(18, 19, 26, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 12px;
  margin-right: 4px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-like:hover {
  transform: scale(1.1);
  background: rgba(255, 42, 116, 0.2);
  border-color: rgba(255, 42, 116, 0.3);
}

.icon-heart {
  width: 22px;
  height: 22px;
  color: #ff2a74;
  transition: transform 0.1s ease;
}

.btn-like:active .icon-heart {
  transform: scale(0.8);
}

/* Bottom Chat Input Form */
.input-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  z-index: 10;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  pointer-events: auto;
}

.chat-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.chat-input {
  width: 100%;
  background: rgba(10, 11, 16, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 28px;
  padding: 14px 52px 14px 20px;
  font-size: 14px;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.chat-input:focus {
  border-color: rgba(255, 42, 116, 0.5);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 
              0 0 15px rgba(255, 42, 116, 0.25);
}

.btn-send {
  position: absolute;
  right: 6px;
  background: linear-gradient(135deg, #ff2a74 0%, #8a2be2 100%);
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 42, 116, 0.3);
  transition: all 0.2s ease;
}

.btn-send:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.icon-send {
  width: 16px;
  height: 16px;
  transform: translate(-1px, 0.5px);
}

/* Inline Chat Locked Preview Card */
.chat-card-preview {
  background: rgba(18, 19, 26, 0.85);
  border: 1px solid rgba(255, 42, 116, 0.25);
  border-radius: 16px;
  padding: 12px;
  margin-top: 6px;
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: messageSlideIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.chat-card-preview .preview-media-wrapper {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.chat-card-preview .preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-card-preview .preview-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: backdrop-filter 0.3s ease;
}

.chat-card-preview.playing .preview-blur-overlay {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.chat-card-preview .preview-lock-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 6px;
}

.chat-card-preview .icon-lock {
  width: 22px;
  height: 22px;
  color: #ff2a74;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.chat-card-preview .preview-lock-badge span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.chat-card-preview .preview-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.chat-card-preview .preview-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.chat-card-preview .preview-duration {
  font-size: 10px;
  color: #a2a8b5;
}

/* Chat Checkout Button Premium */
.chat-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  background: linear-gradient(135deg, #ff2a74 0%, #ff5e62 50%, #ff7a00 100%);
  color: #fff !important;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 13px 18px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(255, 42, 116, 0.4), 
              0 0 8px rgba(255, 122, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 6px;
  text-transform: uppercase;
  animation: messageSlideIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards,
             pulseBtnGlow 2s infinite alternate;
}

.chat-checkout-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(255, 42, 116, 0.65), 
              0 0 15px rgba(255, 122, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.4);
  filter: brightness(1.1);
}

.chat-checkout-btn:active {
  transform: translateY(0) scale(0.98);
}

@keyframes pulseBtnGlow {
  0% {
    box-shadow: 0 5px 14px rgba(255, 42, 116, 0.4), 
                0 0 5px rgba(255, 122, 0, 0.15);
  }
  100% {
    box-shadow: 0 8px 22px rgba(255, 42, 116, 0.7), 
                0 0 12px rgba(255, 122, 0, 0.4);
  }
}



/* Animations */
@keyframes pulseGreen {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 4px 15px rgba(255, 42, 116, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(255, 42, 116, 0.7), 0 0 10px rgba(138, 43, 226, 0.4); }
  100% { box-shadow: 0 4px 15px rgba(255, 42, 116, 0.4); }
}

@keyframes floatHeart {
  0% {
    transform: translateY(0) scale(0.5) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
    transform: translateY(-20px) scale(1) rotate(-10deg);
  }
  100% {
    transform: translateY(-240px) scale(0.8) rotate(20deg);
    opacity: 0;
  }
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Utility Helpers */
.hidden {
  display: none !important;
}

/* Responsive adjustments (Force 100% full screen on small mobile screens) */
@media (max-width: 480px), (max-height: 600px) {
  .app-container {
    padding: 0;
  }
  .live-container {
    max-width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border: none;
  }
  body {
    background-color: #000;
  }
  .bg-blur-container {
    display: none;
  }
}

/* Modal de CTA Obrigatório */
.cta-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 9, 12, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.cta-modal-content {
  background: rgba(18, 19, 26, 0.85);
  border: 1.5px solid rgba(255, 42, 116, 0.35);
  border-radius: 24px;
  padding: 32px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 
              0 0 25px rgba(255, 42, 116, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: modalPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.cta-heart-animation {
  font-size: 40px;
  animation: pulseHeart 1.2s infinite;
}

.cta-modal-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cta-modal-content p {
  font-size: 13.5px;
  color: #c4c9d4;
  line-height: 1.5;
}

.btn-cta-unlock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(135deg, #ff2a74 0%, #ff5e62 50%, #ff7a00 100%);
  color: #fff !important;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 15px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(255, 42, 116, 0.5);
  transition: all 0.3s ease;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: pulseBtnGlow 2s infinite alternate;
}

.btn-cta-unlock:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(255, 42, 116, 0.7);
  filter: brightness(1.1);
}

.cta-secure-text {
  font-size: 11px !important;
  color: #727a8a !important;
  margin-top: 4px;
}

/* Botão flutuante de Link Direto */
.btn-direct-checkout {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: linear-gradient(135deg, #ff2a74 0%, #8a2be2 100%);
  color: #fff !important;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(255, 42, 116, 0.4), 
              0 0 10px rgba(138, 43, 226, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  animation: pulseGlow 2.5s infinite, directBtnPopIn 0.3s ease-out;
}

.btn-direct-checkout:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(255, 42, 116, 0.6), 
              0 0 15px rgba(138, 43, 226, 0.4);
}

.pulse-icon {
  animation: heartBeat 1.5s infinite;
}

/* Novas animações auxiliares */
@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes directBtnPopIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes pulseHeart {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

/* Video Call Simulation Screen */
.call-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  animation: modalPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.call-avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
}

.call-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2a74 0%, #8a2be2 100%);
  border: 3px solid #ff2a74;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 8px 24px rgba(255, 42, 116, 0.4);
  z-index: 5;
  position: relative;
}

.pulse-ring, .pulse-ring-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 42, 116, 0.5);
  animation: pulseCallRing 2s infinite ease-out;
  z-index: 1;
}

.pulse-ring-2 {
  animation-delay: 0.8s;
}

@keyframes pulseCallRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.call-screen h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.call-screen p {
  font-size: 13.5px;
  color: #c4c9d4;
  line-height: 1.5;
  max-width: 280px;
}

.call-actions {
  display: flex;
  gap: 36px;
  margin-top: 15px;
}

.btn-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #a2a8b5;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.btn-call svg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 16px;
  color: #fff;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-call.decline svg {
  background: #ff3b30;
}

.btn-call.accept svg {
  background: #34c759;
  animation: callShake 1.5s infinite;
}

.btn-call:hover {
  color: #fff;
  transform: scale(1.08);
}

.btn-call.decline:hover svg {
  box-shadow: 0 8px 20px rgba(255, 59, 48, 0.5);
  background: #ff453a;
}

.btn-call.accept:hover svg {
  box-shadow: 0 8px 20px rgba(52, 199, 89, 0.5);
  background: #30d158;
}

@keyframes callShake {
  0% { transform: scale(1) rotate(0deg); }
  10% { transform: scale(1.05) rotate(-10deg); }
  20% { transform: scale(1.05) rotate(10deg); }
  30% { transform: scale(1.05) rotate(-10deg); }
  40% { transform: scale(1.05) rotate(10deg); }
  50% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.cta-price-tag {
  font-size: 15px !important;
  color: #fff !important;
  margin: 6px 0;
}

.cta-price-tag strong {
  color: #ff2a74;
  font-size: 18px;
}


