/* ===== RESET ===== */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background: #0d0d0d;
      background-image: radial-gradient(ellipse at 20% 50%, rgba(60, 60, 70, 0.3) 0%, transparent 60%),
                        radial-gradient(ellipse at 80% 20%, rgba(80, 80, 100, 0.15) 0%, transparent 50%);
      color: #f0f0f0;
      font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
      line-height: 1.7;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 2rem;
    }

    .offline-container {
      max-width: 700px;
      text-align: center;
      padding: 3rem 2.5rem;
      background: rgba(255, 255, 255, 0.02);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 24px;
      box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
      position: relative;
      overflow: hidden;
    }

    .offline-container::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -30%;
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(138, 180, 248, 0.04), transparent 70%);
      border-radius: 50%;
      pointer-events: none;
      animation: floatGlow 15s ease-in-out infinite;
    }

    .offline-container::after {
      content: '';
      position: absolute;
      bottom: -40%;
      left: -20%;
      width: 300px;
      height: 300px;
      background: radial-gradient(circle, rgba(138, 180, 248, 0.03), transparent 70%);
      border-radius: 50%;
      pointer-events: none;
      animation: floatGlow 20s ease-in-out infinite reverse;
    }

    @keyframes floatGlow {
      0%, 100% { transform: translate(0, 0) scale(1); }
      33% { transform: translate(30px, -20px) scale(1.1); }
      66% { transform: translate(-20px, 30px) scale(0.9); }
    }

    .offline-title {
      font-size: 2.4rem;
      font-weight: 800;
      line-height: 1.1;
      margin-bottom: 1rem;
      position: relative;
      z-index: 1;
      background: linear-gradient(135deg, #ffffff 0%, #c8d8ff 30%, #8ab4f8 60%, #a8c8ff 80%, #ffffff 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      filter: drop-shadow(0 4px 30px rgba(138, 180, 248, 0.04));
    }

    .offline-text {
      font-size: 1.05rem;
      color: rgba(255, 255, 255, 0.55);
      max-width: 500px;
      margin: 0 auto 2.5rem;
      position: relative;
      z-index: 1;
      line-height: 1.8;
    }

    /* ===== SPINNING WHEEL (besser sichtbar) ===== */
    .spinner-wrapper {
      position: relative;
      z-index: 1;
      margin: 0 auto 1.5rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.2rem;
    }

    .spinning-wheel {
      position: relative;
      width: 80px;
      height: 80px;
    }

    /* Äußere Ringe – dicker und heller */
    .spinning-wheel .ring {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    }

    .spinning-wheel .ring-1 {
      border: 3px solid transparent;
      border-top-color: rgba(138, 180, 248, 0.5);
      border-right-color: rgba(138, 180, 248, 0.15);
      animation-duration: 1.2s;
    }

    .spinning-wheel .ring-2 {
      border: 3px solid transparent;
      border-bottom-color: rgba(138, 180, 248, 0.4);
      border-left-color: rgba(138, 180, 248, 0.1);
      width: 78%;
      height: 78%;
      top: 11%;
      left: 11%;
      animation-duration: 0.9s;
      animation-direction: reverse;
    }

    .spinning-wheel .ring-3 {
      border: 3px solid transparent;
      border-top-color: rgba(138, 180, 248, 0.3);
      border-right-color: rgba(138, 180, 248, 0.08);
      width: 56%;
      height: 56%;
      top: 22%;
      left: 22%;
      animation-duration: 0.7s;
    }

    /* Zentrumspunkt – größer und heller */
    .spinning-wheel .center-dot {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 12px;
      height: 12px;
      background: radial-gradient(circle, rgba(138, 180, 248, 0.4), rgba(138, 180, 248, 0.05));
      border-radius: 50%;
      box-shadow: 0 0 20px rgba(138, 180, 248, 0.15);
    }

    /* Leichter Glow um das gesamte Wheel */
    .spinning-wheel::after {
      content: '';
      position: absolute;
      top: -10px;
      left: -10px;
      right: -10px;
      bottom: -10px;
      background: radial-gradient(circle, rgba(138, 180, 248, 0.04), transparent 70%);
      border-radius: 50%;
      pointer-events: none;
      animation: glowPulse 2s ease-in-out infinite;
    }

    @keyframes glowPulse {
      0%, 100% { transform: scale(1); opacity: 0.5; }
      50% { transform: scale(1.15); opacity: 1; }
    }

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

    .spinner-label {
      color: rgba(255, 255, 255, 0.25);
      font-size: 0.85rem;
      letter-spacing: 0.5px;
      animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 0.3; }
      50% { opacity: 0.8; }
    }

    /* ===== STATUS-TEXT ===== */
    .status-text {
      color: rgba(255, 255, 255, 0.15);
      font-size: 0.8rem;
      position: relative;
      z-index: 1;
      margin-top: 0.5rem;
    }

    .status-text .dot {
      display: inline-block;
      width: 6px;
      height: 6px;
      background: rgba(138, 180, 248, 0.3);
      border-radius: 50%;
      margin-right: 6px;
      animation: blink 1.5s ease-in-out infinite;
      vertical-align: middle;
    }

    @keyframes blink {
      0%, 100% { opacity: 0.2; }
      50% { opacity: 1; }
    }

    /* ===== BUTTONS ===== */
    .offline-actions {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
      position: relative;
      z-index: 1;
      margin-top: 1rem;
    }

    .btn {
      display: inline-block;
      padding: 0.8rem 2.2rem;
      font-weight: 600;
      text-decoration: none;
      border-radius: 12px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      font-size: 1rem;
      min-height: 48px;
      min-width: 48px;
      text-align: center;
      cursor: pointer;
      border: none;
    }

    .btn-refresh {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.06);
      color: #e0e0e0;
      padding: 0.8rem 2.2rem;
      border-radius: 12px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      min-height: 48px;
      min-width: 48px;
      font-family: inherit;
    }

    .btn-refresh:hover {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 255, 255, 0.1);
      transform: translateY(-3px);
    }

    /* ===== FOOTER ===== */
    .offline-footer {
      margin-top: 2.5rem;
      font-size: 0.8rem;
      color: rgba(255, 255, 255, 0.1);
      position: relative;
      z-index: 1;
    }

    .offline-footer a {
      color: rgba(138, 180, 248, 0.25);
      text-decoration: none;
      transition: color 0.2s;
    }

    .offline-footer a:hover {
      color: rgba(138, 180, 248, 0.5);
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 600px) {
      .offline-container {
        padding: 2rem 1.5rem;
      }

      .offline-title {
        font-size: 1.8rem;
      }

      .offline-text {
        font-size: 1rem;
      }

      .offline-actions {
        flex-direction: column;
        align-items: center;
      }

      .btn, .btn-refresh {
        width: 100%;
        max-width: 300px;
      }

      .spinning-wheel {
        width: 60px;
        height: 60px;
      }

      .spinning-wheel .ring {
        border-width: 2.5px;
      }

      .spinning-wheel .center-dot {
        width: 10px;
        height: 10px;
      }
    }