  @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

  /* Reset with improved defaults */
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  :root {
    --primary-color: #00ffe7;
    --primary-light: #b2fef7;
    --success-color: #00ffa0;
    --error-color: #ff3f6c;
    --bg-gradient: linear-gradient(135deg, #0f2027, #203a43 50%, #2c5364);
    --card-bg: rgba(20, 20, 30, 0.92);
    --text-color: #f0f8ff;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  body, html {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    overflow: hidden;
    line-height: 1.6;
    flex-direction: column;
    padding: 20px;
  }

  .container {
    background: var(--card-bg);
    border-radius: 24px;
    padding: clamp(30px, 5vw, 50px) clamp(40px, 6vw, 60px);
    width: min(420px, 90%);
    box-shadow: 
      0 0 20px var(--primary-color),
      0 0 40px var(--primary-color) inset,
      0 4px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 231, 0.15);
    animation: pulseGlow 4s ease-in-out infinite;
  }

  /* Glow animation */
  @keyframes pulseGlow {
    0%, 100% {
      box-shadow: 
        0 0 20px var(--primary-color),
        0 0 40px var(--primary-color) inset;
      border-color: rgba(0, 255, 231, 0.15);
    }
    50% {
      box-shadow: 
        0 0 40px var(--success-color),
        0 0 80px var(--success-color) inset;
      border-color: rgba(0, 255, 231, 0.3);
    }
  }

  .emoji {
    font-size: clamp(4rem, 10vw, 6rem);
    margin-bottom: 1.5rem;
    user-select: none;
    filter: drop-shadow(0 0 8px var(--primary-color));
    animation: bounce 1.8s ease-in-out infinite;
    will-change: transform;
  }

  @keyframes bounce {
    0%, 100% {
      transform: translateY(0) scale(1);
    }
    50% {
      transform: translateY(-15px) scale(1.05);
    }
  }

  h1 {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    text-shadow: 0 0 12px var(--primary-color);
    line-height: 1.2;
  }

  p {
    font-weight: 300;
    font-size: clamp(1rem, 3vw, 1.25rem);
    line-height: 1.6;
    color: var(--primary-light);
    text-shadow: 0 0 8px rgba(0, 255, 231, 0.7);
    margin-bottom: 0.5rem;
  }

  .access {
    color: var(--success-color);
    font-weight: 600;
    text-shadow: 0 0 12px var(--success-color);
  }

  .denied {
    color: var(--error-color);
    font-weight: 600;
    text-shadow: 0 0 12px var(--error-color);
  }

  .retry-btn {
    margin-top: 2.5rem;
    background: linear-gradient(45deg, var(--success-color), #00d1ff);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #030303;
    cursor: pointer;
    box-shadow: 
      0 4px 15px rgba(0, 255, 160, 0.7),
      0 0 0 1px rgba(0, 255, 231, 0.3);
    transition: var(--transition);
    user-select: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 180px;
  }
  .retry-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #00d1ff, var(--success-color));
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
  }
  .retry-btn:hover {
    box-shadow: 
      0 0 30px #00d1ff,
      0 0 0 1px rgba(0, 255, 231, 0.5);
    transform: scale(1.05);
  }
  .retry-btn:hover::before {
    opacity: 1;
  }

  .spinner {
    margin: 0 auto 2rem auto;
    width: 64px;
    height: 64px;
    border: 6px solid rgba(0, 255, 231, 0.2);
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
  }
  .spinner::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 6px solid transparent;
    border-radius: 50%;
    border-top-color: rgba(0, 255, 231, 0.5);
    animation: spin 1.5s linear infinite reverse;
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /* Лог консоли */
  .log-console {
    margin-top: 20px;
    width: min(420px, 90%);
    max-height: 160px;
    background: rgba(10, 10, 20, 0.85);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 231, 0.15);
    padding: 15px 20px;
    color: var(--primary-light);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    overflow-y: auto;
    box-shadow:
      0 0 15px var(--primary-color);
  }

  /* Responsive */
  @media (max-width: 480px) {
    .container, .log-console {
      padding: 20px;
      border-radius: 16px;
    }

    .retry-btn {
      padding: 0.7rem 1.5rem;
      min-width: 160px;
    }
  }