/* Custom tweaks to complement Tailwind for pixel-fit */
html,
body {
  height: 100%;
}

/* Smooth slider motion */
/* Add these styles to your main.css */

/* Hero Slider Improvements */
#heroSlides {
  perspective: 1000px;
}

.slide {
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 2s ease-in-out, transform 2s ease-in-out;
}

.slide[data-state="active"] {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.slide[data-state="inactive"] {
  opacity: 0;
  transform: scale(1.1);
  z-index: 1;
}

/* Ken Burns Effect */
.ken-burns-zoom {
  animation: kenBurns 8s ease-in-out infinite;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Progress bars */
.progress-bar {
  width: 0%;
}

.progress-bar[data-active="true"] {
  width: 100%;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .slide,
  .ken-burns-zoom,
  .progress-bar {
    animation: none !important;
    transition: none !important;
  }

  .slide[data-state="active"] {
    opacity: 1;
    transform: scale(1);
  }
}

/* Enhanced performance */
.slide {
  will-change: transform, opacity;
}

.ken-burns-zoom {
  will-change: transform;
}

/* Error state handling */
.slide:not([data-state]) {
  display: none;
}

/* Card carousel sizing */
#cardTrack {
  transform: translateX(0);
}

/* Typography fine-tuning to better match mock */
h1,
h2,
h3,
h4 {
  letter-spacing: 0.02em;
}

/* Buttons */
button {
  transition: transform 0.15s ease, opacity 0.2s ease;
}
button:hover {
  transform: translateY(-1px);
}
button:active {
  transform: translateY(0);
  opacity: 0.9;
}

/* 3D Carousel styles */
.pik-carousel {
  perspective: 1200px;
  touch-action: pan-y; /* Allow vertical scrolling but capture horizontal gestures */
  cursor: grab; /* Show grab cursor by default */
}
.pik-carousel:active {
  cursor: grabbing; /* Show grabbing cursor when dragging */
}
.pik-card {
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), opacity 400ms ease,
    filter 400ms ease, box-shadow 400ms ease;
  cursor: pointer;
  user-select: none; /* Prevent text selection during drag */
}
.pik-card:hover {
  transform: scale(1.02); /* Slight scale on hover for better feedback */
}

/* Carousel navigation buttons */
#carouselPrev,
#carouselNext {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Large screen adjustments for carousel */
@media (min-width: 1024px) {
  .pik-card {
    width: 380px !important;
    height: 500px !important;
  }
}

/* Mobile responsive adjustments for carousel */
@media (max-width: 768px) {
  #carouselPrev,
  #carouselNext {
    width: 40px;
    height: 40px;
  }

  #carouselPrev {
    left: 4px;
  }

  #carouselNext {
    right: 4px;
  }

  .pik-carousel {
    perspective: 800px;
    /* Ensure more cards are visible on mobile */
    overflow: visible;
  }

  .pik-card {
    width: 320px !important;
    height: 420px !important;
    /* Ensure cards remain visible */
    visibility: visible !important;
    display: block !important;
  }

  /* Improve card spacing on mobile */
  /* .pik-card:not(.is-center) {
    opacity: 0.95 !important;
  } */
}

@media (max-width: 480px) {
  .pik-card {
    width: 280px !important;
    height: 400px !important;
  }

  #carouselPrev,
  #carouselNext {
    width: 36px;
    height: 36px;
  }
}

/* Full-bleed helper for asymmetric sections */
.full-bleed-side {
  position: relative;
}
.full-bleed-side::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50vw;
  background: rgba(0, 0, 0, 0.8);
  pointer-events: none;
}
.full-bleed-left::before {
  left: 0;
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
}
.full-bleed-right::before {
  right: 0;
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
}
/* State classes no longer needed for layout; kept for graceful fallback */
.pik-card.is-center {
}
.pik-card.is-left {
}
.pik-card.is-right {
}
.pik-card.is-far {
}

/* Reveal animations (cards only) */
.reveal-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  .reveal-card {
    transition: none;
    transform: none;
  }
}

/* Smoother background sections to avoid jank */
[data-parallax] {
  will-change: background-position;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Custom scrollbar styling for dashboard */
.scrollbar-thin {
  scrollbar-width: thin;
}

.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background-color: rgba(255, 122, 182, 0.5);
  border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 122, 182, 0.7);
}

/* Pricing cards unique styling */
.pricing-card {
  min-height: 400px; /* Ensure consistent minimum height */
}

.pricing-card .badge {
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1;
}

.pricing-card .title {
  line-height: 1.2;
  word-break: break-word;
}

.pricing-card .description {
  min-height: 3.5rem; /* Consistent description height */
  display: flex;
  align-items: center;
}

.pricing-card .features {
  min-height: 6rem; /* Consistent features area height */
}

.pricing-card .pricing-section {
  margin-top: auto; /* Push to bottom */
}

/* Unique button colors for each plan */
.pricing-card[data-plan="sweet-talk"] button {
  background: linear-gradient(135deg, #ff7ab6, #ff9ac6);
  color: white;
}

.pricing-card[data-plan="picture-perfect"] button {
  background: linear-gradient(135deg, #fbbf24, #fcd34d);
  color: black;
}

.pricing-card[data-plan="all-access"] button {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: black;
}

.pricing-card[data-plan="double-trouble"] button {
  background: linear-gradient(135deg, #d946ef, #e879f9);
  color: white;
}

/* Hover effects for pricing cards */
.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card:hover button {
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile optimizations for pricing cards */
@media (max-width: 768px) {
  .pricing-card {
    padding: 1rem;
    min-height: 400px;
  }

  .pricing-card .title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }

  .pricing-card .badge {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
  }

  .pricing-card .description {
    min-height: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .pricing-card .description p {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .pricing-card .features {
    min-height: 4rem;
    margin-bottom: 1rem;
  }

  .pricing-card .features ul {
    gap: 0.5rem;
  }

  .pricing-card .features li {
    font-size: 0.8rem;
  }

  .pricing-card .pricing-section {
    margin-top: auto;
  }

  .pricing-card .pricing-section .text-2xl {
    font-size: 1.5rem;
  }

  .pricing-card .pricing-section .text-xs {
    font-size: 0.625rem;
  }

  .pricing-card button {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .pricing-card {
    padding: 0.75rem;
    min-height: 350px;
  }

  .pricing-card .title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .pricing-card .description {
    min-height: 2rem;
    margin-bottom: 0.5rem;
  }

  .pricing-card .description p {
    font-size: 0.8rem;
  }

  .pricing-card .features {
    min-height: 3rem;
    margin-bottom: 0.75rem;
  }

  .pricing-card .features li {
    font-size: 0.75rem;
  }

  .pricing-card .pricing-section .text-2xl {
    font-size: 1.25rem;
  }

  .pricing-card button {
    padding: 0.625rem 0.875rem;
    font-size: 0.8rem;
  }
}

/* Individual plan hover effects - very subtle accent colors */
@media (max-width: 768px) {
  .auth-page {
    padding: 0;
  }

  .auth-page header {
    height: 4rem;
  }

  .auth-page header .text-2xl {
    font-size: 1.25rem;
  }

  .auth-card {
    margin: 0.5rem;
    padding: 1rem;
    border-radius: 1rem;
  }

  .auth-input {
    padding: 0.75rem 1rem;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .auth-button {
    padding: 0.75rem 1rem;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  /* Reduce spacing on mobile */
  .auth-card form {
    gap: 0.75rem;
  }

  .auth-card .space-y-3 > * + * {
    margin-top: 0.5rem;
  }

  .auth-card .space-y-4 > * + * {
    margin-top: 0.75rem;
  }

  .auth-card .space-y-6 > * + * {
    margin-top: 0.75rem;
  }

  /* Ensure form fields are properly spaced */
  .auth-card form > div {
    margin-bottom: 0.5rem;
  }

  .auth-card form > div:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .auth-page header {
    height: 3.5rem;
  }

  .auth-page header .text-2xl {
    font-size: 1.125rem;
  }

  .auth-card {
    margin: 0.25rem;
    padding: 0.75rem;
  }

  .auth-input {
    padding: 0.625rem 0.875rem;
  }

  .auth-button {
    padding: 0.625rem 0.875rem;
  }

  /* Even tighter spacing on very small screens */
  .auth-card form {
    gap: 0.5rem;
  }

  .auth-card .space-y-3 > * + * {
    margin-top: 0.375rem;
  }

  .auth-card .space-y-4 > * + * {
    margin-top: 0.5rem;
  }

  .auth-card .space-y-6 > * + * {
    margin-top: 0.5rem;
  }

  /* Ensure form fields are properly spaced on very small screens */
  .auth-card form > div {
    margin-bottom: 0.375rem;
  }

  .auth-card form > div:last-child {
    margin-bottom: 0;
  }

  /* Make labels smaller on very small screens */
  .auth-card label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
  }

  /* Reduce input padding on very small screens */
  .auth-input {
    padding: 0.5rem 0.75rem;
    font-size: 14px;
  }

  /* Reduce button padding on very small screens */
  .auth-button {
    padding: 0.5rem 0.75rem;
    font-size: 14px;
  }
}

/* Individual plan hover effects - very subtle accent colors */
.pricing-card[data-plan="sweet-talk"]:hover {
  border-color: rgba(255, 122, 182, 0.2);
}

.pricing-card[data-plan="picture-perfect"]:hover {
  border-color: rgba(251, 191, 36, 0.2);
}

.pricing-card[data-plan="all-access"]:hover {
  border-color: rgba(16, 185, 129, 0.2);
}

.pricing-card[data-plan="double-trouble"]:hover {
  border-color: rgba(217, 70, 239, 0.2);
}

.iti__flag-box, .iti__country-name {
  background-color: transparent;
  color: black !important;
}



.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.success {
  background: linear-gradient(90deg, #0E82FD 0%, #06AED4 70%);
}
.toast.error {
  background: linear-gradient(90deg, #FD0E3D 0%, #D40636 70%);
}
.toast svg {
  width: 18px;
  height: 18px;
}

.iti__search-input{
    color:black !important;
}

