/* WEB PANEL PROXY public CSS */
:root {
      --bg-gradient: radial-gradient(circle at 50% 20%, #1e293b 0%, #0f172a 100%);
      --card-bg: rgba(30, 41, 59, 0.7);
      --card-border: rgba(255, 255, 255, 0.1);
      --primary-color: #38bdf8;
      --primary-glow: rgba(56, 189, 248, 0.35);
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--bg-gradient);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      color: var(--text-main);
      padding: 24px;
      overflow: hidden;
      position: relative;
    }

    /* Фоновые светящиеся сферы */
    .bg-glow {
      position: absolute;
      border-radius: 50%;
      filter: blur(100px);
      z-index: 0;
      pointer-events: none;
    }

    .bg-glow-1 {
      top: 15%;
      left: 20%;
      width: 300px;
      height: 300px;
      background: rgba(56, 189, 248, 0.15);
    }

    .bg-glow-2 {
      bottom: 15%;
      right: 20%;
      width: 350px;
      height: 350px;
      background: rgba(99, 102, 241, 0.15);
    }

    /* Центральная карточка */
    .container {
      position: relative;
      z-index: 1;
      width: min(580px, 100%);
      padding: 40px;
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 28px;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
      text-align: center;
    }

    /* Анимированная иконка */
    .icon-wrapper {
      width: 80px;
      height: 80px;
      margin: 0 auto 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(56, 189, 248, 0.1);
      border: 1px solid rgba(56, 189, 248, 0.25);
      border-radius: 20px;
      box-shadow: 0 0 30px var(--primary-glow);
    }

    .icon-wrapper svg {
      width: 40px;
      height: 40px;
      stroke: var(--primary-color);
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      animation: pulse 2.5s ease-in-out infinite;
    }

    .title {
      font-size: clamp(24px, 5vw, 32px);
      font-weight: 700;
      line-height: 1.25;
      margin-bottom: 12px;
      letter-spacing: -0.02em;
    }

    .title span {
      background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .subtitle {
      font-size: 16px;
      color: var(--text-muted);
      margin-bottom: 32px;
      line-height: 1.5;
    }

    /* Прогресс-бар */
    .progress-section {
      margin-bottom: 28px;
    }

    .progress-track {
      width: 100%;
      height: 8px;
      background: rgba(255, 255, 255, 0.06);
      border-radius: 99px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.05);
      position: relative;
    }

    .progress-fill {
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, #38bdf8, #818cf8, #38bdf8);
      background-size: 200% 100%;
      border-radius: 99px;
      box-shadow: 0 0 12px var(--primary-glow);
      animation: maintenanceBar 2s linear infinite;
    }

    /* Индикатор текущего состояния */
    .state-info {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin-top: 16px;
      font-size: 14px;
      color: var(--text-main);
      line-height: 1.5;
      background: rgba(255, 255, 255, 0.03);
      padding: 12px 18px;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .gear-icon {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      stroke: var(--primary-color);
      fill: none;
      stroke-width: 2;
      animation: rotate 4s linear infinite;
    }

    .loading-dots::after {
      content: '';
      display: inline-block;
      width: 16px;
      text-align: left;
      animation: dots 1.5s steps(4, end) infinite;
    }

    /* Анимации */
    @keyframes maintenanceBar {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    @keyframes rotate {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    @keyframes dots {
      0% { content: ''; }
      25% { content: '.'; }
      50% { content: '..'; }
      75% { content: '...'; }
    }

    @keyframes pulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.08); opacity: 0.85; }
    }

    @media (max-width: 480px) {
      .container {
        padding: 28px 20px;
      }
      .subtitle {
        font-size: 14px;
      }
      .state-info {
        font-size: 13px;
        flex-direction: column;
        gap: 6px;
      }
    }