body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at 30% 20%, #eaf5ff 0%, #dcecfb 35%, #cfe4f5 65%, #c3dced 100%);
    background-size: 220% 220%;
    background-attachment: fixed;
    animation: gradientMove 10s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }

  .loading-container {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: containerEnter 0.5s ease-out;
  }

  .loading-ring {
    position: relative;
    width: 132px;
    height: 132px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .loading-ring::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #006781, #107FC4 55%, transparent 78%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    animation: spin 1.1s linear infinite;
    filter: drop-shadow(0 0 6px rgba(16, 127, 196, 0.35));
  }

  .loading-ring::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 103, 129, 0.18);
  }

  .loading-logo {
    width: 62px;
    height: 62px;
    position: relative;
    z-index: 1;
    animation: pulse 2.2s ease-in-out infinite;
  }

  .loading-wordmark {
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    line-height: 1.2;
    opacity: 0;
    animation: wordmarkFadeIn 0.6s ease-out 0.35s forwards;
  }

  .loading-wordmark-brand {
    color: #107FC4;
    font-weight: 500;
    margin-right: 6px;
  }

  .loading-wordmark-suffix {
    color: #757B80;
    font-weight: 400;
  }

  /* Spin Animation */
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  /* Logo breathing animation */
  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.06);
      opacity: 0.85;
    }
  }

  /* Loading container entrance */
  @keyframes containerEnter {
    0% {
      opacity: 0;
      transform: scale(0.92);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* Wordmark fade-in */
  @keyframes wordmarkFadeIn {
    0% {
      opacity: 0;
      transform: translateY(4px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Gradient Movement Animation */
  @keyframes gradientMove {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

  /* Update Notification Banner */
  .update-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 119, 192, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 999999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  }

  .update-banner.show {
    transform: translateY(0);
    opacity: 1;
  }

  .update-banner-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4C9AE0 0%, #0077C0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
  }

  .update-banner-text {
    font-size: 14px;
    font-weight: 500;
  }

  .update-banner-btn {
    background: #0077C0;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
  }

  .update-banner-btn:hover {
    background: #005f99;
  }

  .update-banner-btn:active {
    transform: scale(0.96);
  }

