
    /* Prevents the 'jump to top' when sliders or dynamic content load */
html {
    scroll-behavior: smooth;
    overflow-y: scroll; /* Forces scrollbar to stay visible to prevent width snapping */
}

/* Fix for UIkit slideshow/slider focus jump */
.uk-slideshow, .uk-slider {
    touch-action: pan-y !important;
}

  .uk-inline {
    display: inline-block;
    position: relative;
    overflow: hidden;
    /* Remove the static background color here */
    background: transparent;
    transition: background 0.3s ease;
    border-radius: 5px;
  }

  .uk-inline img {
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    display: block;
    border-radius: 5px;
  }

  /* The Dark Overlay layer */
  .uk-inline::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* This is the color that appears ONLY ON HOVER */
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
  }

  /* --- THE HOVER STATES --- */

  .uk-inline:hover {
    background: #000; /* Container turns black only on hover */
  }

  .uk-inline:hover img {
    transform: scale(1.05);
    opacity: 0.5; /* Dims the image to let the black background show through */
  }

  .uk-inline:hover::after {
    opacity: 1; /* Fades the dark tint in */
  }

  /* Grid constraints */
  .images .uk-inline img {
    width: 100%;
    height: 250px;
    object-fit: contain;
  }


  .live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ff3b30; /* Bright Red */
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    top: -1px;
    box-shadow: 0 0 0 rgba(255, 59, 48, 0.4);
    animation: pulse-red 2s infinite;
  }

  @keyframes pulse-red {
    0% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }
    70% {
      transform: scale(1);
      box-shadow: 0 0 0 10px rgba(255, 59, 48, 0);
    }
    100% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
  }


  /* Prevent the jump when predictions.html loads */
#prediction-app {
  min-height: 400px; /* Adjust this to the average height of your prediction card */
  display: block;
  background: rgba(255, 255, 255, 0.05); /* Optional: subtle ghost loading look */
  border-radius: 15px;
  margin-bottom: 2em;
}

/* If the card inside is usually very tall (like 1000px based on your logs) */
#prediction-app:empty {
  height: 600px;
}


  /* The "Beautiful & Fun" Gradient */
  .gradient-text {
    background: linear-gradient(45deg, rgba(219, 195, 255, 0.8), #3074c3, #9f65ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 4s linear infinite;
    display: inline-block;
  }

  /* Subtler AI text with a glow */
  .ai-text {
    color: #6fb3fa;
    text-shadow: 0px 0px 8px rgba(0,0,0,0.05);
    font-weight: 800;
  }

  /* Animates the gradient colors to slide */
  @keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  /* Pulse for the Sale Button */
  .pulse-container {
    animation: pulse-animation 2s infinite;
  }

  @keyframes pulse-animation {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(219, 40, 40, 0.3); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(219, 40, 40, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(219, 40, 40, 0); }
  }

  /* Hover effect for the segment */
  .ui.segment:hover {
    transform: translateY(-3px);
    transition: all 0.3s ease;
    border-color: #28a745 !important;
  }

