.loading {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        -ms-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

    .loader {
        border: 6px solid #000000;
        border-radius: 50%;
        border-left: 6px solid white;
        width: 40px;
        height: 40px;
        -webkit-animation: spin 1s linear infinite;
        animation: spin 1s linear infinite;
    }

    @-webkit-keyframes spin {
        0% {
            -webkit-transform: rotate(0deg);
        }

        100% {
            -webkit-transform: rotate(360deg);
        }
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

/* Beautiful Portrait Orientation Prompt
@media screen and (orientation: landscape) and (max-width: 1024px) {
  body::before {
    content: "Turn your device for the best experience\A\AWe've optimized this website for phones and tablets in portrait mode. Please rotate your device to continue!";
    white-space: pre-line;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: clamp(16px, 3.5vw, 24px);
    font-weight: 400;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 30px;
    backdrop-filter: blur(15px);
    animation: fadeInScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: inset 0 0 200px rgba(255, 255, 255, 0.1);
  }

  #flutter_container,
  .main-content,
  .app-container {
    display: none !important;
  }

  @keyframes fadeInScale {
    from {
      opacity: 0;
      transform: scale(0.95);
      backdrop-filter: blur(0px);
    }
    to {
      opacity: 1;
      transform: scale(1);
      backdrop-filter: blur(15px);
    }
  }

  @keyframes rotatePhone {
    0%, 100% {
      transform: translate(-50%, -100px) rotate(0deg);
      opacity: 0.8;
    }
    25% {
      transform: translate(-50%, -100px) rotate(45deg);
      opacity: 1;
    }
    50% {
      transform: translate(-50%, -100px) rotate(90deg);
      opacity: 0.8;
    }
    75% {
      transform: translate(-50%, -100px) rotate(45deg);
      opacity: 1;
    }
  }
}

/* Smooth transition when rotating to portrait
@media screen and (orientation: portrait) {
  body {
    animation: fadeInFromRotation 0.7s ease-out;
  }

  #flutter_container,
  .main-content,
  .app-container {
    animation: slideInFromTop 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  @keyframes fadeInFromRotation {
    from {
      opacity: 0.7;
      filter: blur(2px);
    }
    to {
      opacity: 1;
      filter: blur(0px);
    }
  }

  @keyframes slideInFromTop {
    from {
      opacity: 0;
      transform: translateY(-30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}*/

/* Enhanced version for tablets
@media screen and (orientation: landscape) and (min-width: 768px) and (max-width: 1024px) {
  body::before {
    font-size: clamp(20px, 4vw, 28px);
    padding: 60px 40px;
  }

  body::after {
    font-size: 56px;
    transform: translate(-50%, -120px);
  }
}*/

/* Optional: Add subtle pulse effect for better attention
@media screen and (orientation: landscape) and (max-width: 1024px) {
  body::before {
    animation: fadeInScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              subtlePulse 3s ease-in-out infinite 1s;
  }

  @keyframes subtlePulse {
    0%, 100% {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    50% {
      background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    }
  }
}*/
