 :root {
      --bg-dark: #0a0503;
      --gold: #e1b76c;
      --gold-light: #f5d28a;
      --gold-dark: #c9a35e;
      --text: #f8f2e4;
      --text-dark: #c8bda1;
      --border: #4a3325;
      --blood: #a52a2a;
      --parchment: #2a2118;
      --input-bg: rgba(42, 33, 24, 0.8);
      --input-focus: rgba(225, 183, 108, 0.3);
      --success: rgba(76, 175, 80, 0.2);
      --error: rgba(244, 67, 54, 0.2);
      --success-green: #28a745;
      --error-red: #dc3545;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

    html, body {
      height: 100%;
      width: 100%;
      overflow-x: hidden;
      background: var(--bg-dark);
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      color: var(--text);
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 20px 10px;
      position: relative;
      background: 
        radial-gradient(circle at center, rgba(42, 33, 24, 0.2) 0%, rgba(10, 5, 3, 1) 70%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%234a3325" stroke-width="0.3"/></svg>');
    }

    body::before {
      content: "";
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: 
        radial-gradient(circle at 20% 30%, rgba(225, 183, 108, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(225, 183, 108, 0.03) 0%, transparent 50%);
      pointer-events: none;
      z-index: -1;
      animation: particleMove 20s infinite alternate;
    }

    @keyframes particleMove {
      0% { transform: translate(0, 0); }
      100% { transform: translate(10px, 10px); }
    }

    .home-btn {
      position: absolute;
      top: 15px;
      left: 15px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 8px 12px;
      background: linear-gradient(to bottom, rgba(60, 35, 20, 0.8), rgba(40, 25, 15, 0.9));
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--gold);
      font-size: 13px;
      font-weight: 500;
      text-decoration: none;
      transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
      z-index: 10;
      box-shadow: 
        0 2px 6px rgba(0,0,0,0.3),
        inset 0 1px 1px rgba(255,255,255,0.1);
      backdrop-filter: blur(8px);
      overflow: hidden;
    }

    .home-btn.hidden {
      display: none;
    }

    .home-btn::before {
      content: "";
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, 
        transparent, 
        rgba(225, 183, 108, 0.2), 
        transparent);
      transition: all 0.6s ease;
    }

    .home-btn:hover {
      background: linear-gradient(to bottom, rgba(80, 45, 25, 0.9), rgba(50, 30, 15, 1));
      color: var(--gold-light);
      border-color: var(--gold);
      transform: translateX(-3px);
      box-shadow: 
        0 4px 10px rgba(0,0,0,0.4),
        inset 0 1px 1px rgba(255,255,255,0.15);
    }

    .home-btn:hover::before {
      left: 100%;
    }

    .home-btn i {
      margin-right: 6px;
      font-size: 12px;
      transition: transform 0.4s ease;
    }

    .home-btn:hover i {
      transform: translateX(-3px);
    }

    .verification-container {
      background: 
        linear-gradient(to bottom, 
          rgba(30, 20, 12, 0.95) 0%, 
          rgba(20, 12, 6, 0.98) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 0 L100 0 L100 100 L0 100 Z" fill="none" stroke="%234a3325" stroke-width="0.8" stroke-dasharray="3,3"/></svg>');
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 50px 20px 30px;
      box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.8),
        inset 0 0 25px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(225, 183, 108, 0.1);
      text-align: center;
      max-width: 500px;
      width: 95%;
      position: relative;
      overflow: hidden;
      transform-style: preserve-3d;
      transition: all 0.5s ease;
      animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
      margin-top: 30px;
    }

    @keyframes fadeInUp {
      from { 
        opacity: 0; 
        transform: translateY(25px) rotateX(10deg); 
      }
      to { 
        opacity: 1; 
        transform: translateY(0) rotateX(0); 
      }
    }

    .verification-container::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, 
        transparent, 
        var(--gold), 
        var(--gold-light), 
        var(--gold), 
        transparent);
      opacity: 0.3;
    }

    .verification-container.success {
      background: 
        linear-gradient(to bottom, 
          rgba(30, 20, 12, 0.95) 0%, 
          rgba(20, 12, 6, 0.98) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 0 L100 0 L100 100 L0 100 Z" fill="none" stroke="%2328a745" stroke-width="0.8" stroke-dasharray="3,3"/></svg>');
      box-shadow: 
        0 4px 12px rgba(40, 167, 69, 0.3),
        inset 0 0 25px rgba(0, 0, 0, 0.4);
    }

    .verification-container.error {
      background: 
        linear-gradient(to bottom, 
          rgba(30, 20, 12, 0.95) 0%, 
          rgba(20, 12, 6, 0.98) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 0 L100 0 L100 100 L0 100 Z" fill="none" stroke="%23dc3545" stroke-width="0.8" stroke-dasharray="3,3"/></svg>');
      box-shadow: 
        0 4px 12px rgba(220, 53, 69, 0.3),
        inset 0 0 25px rgba(0, 0, 0, 0.4);
    }

    .glow-effect {
      position: absolute;
      width: 100%;
      height: 3px;
      bottom: 0;
      left: 0;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.5s ease;
    }

    .verification-container.success .glow-effect {
      opacity: 1;
      background: linear-gradient(90deg, 
        transparent, 
        rgba(40, 167, 69, 0.5), 
        transparent);
    }

    .verification-container.error .glow-effect {
      opacity: 1;
      background: linear-gradient(90deg, 
        transparent, 
        rgba(220, 53, 69, 0.5), 
        transparent);
    }

    .status-icon {
      font-size: 64px;
      margin-bottom: 24px;
      position: relative;
      z-index: 2;
      display: none;
    }

    .status-icon.success {
      color: var(--gold-light);
      text-shadow: 0 0 8px rgba(40, 167, 69, 0.3);
    }

    .status-icon.error {
      color: var(--blood);
      text-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
    }

    .status-message {
      font-size: 24px;
      margin-bottom: 16px;
      font-weight: 600;
      position: relative;
      z-index: 2;
      color: var(--gold-light);
      padding-top: 10px;
    }

    .verification-container.success .status-message {
      color: #a5d6a7;
    }

    .verification-container.error .status-message {
      color: #ff6b6b;
    }

    .status-description {
      font-size: 16px;
      margin-bottom: 32px;
      color: var(--text);
      position: relative;
      z-index: 2;
      line-height: 1.6;
      opacity: 0.9;
      padding: 0 10px;
    }

    /* Стили для формы */
    .form-group {
      margin-bottom: 15px;
      position: relative;
    }

    .form-input {
      width: 100%;
      padding: 12px 14px;
      background: var(--input-bg);
      border: 1px solid var(--border);
      border-radius: 7px;
      color: var(--text);
      font-size: 15px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      -webkit-appearance: none;
      appearance: none;
      box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
    }

    .form-input:focus {
      outline: none;
      border-color: var(--gold);
      box-shadow: 
        0 0 0 2px var(--input-focus),
        inset 0 1px 2px rgba(0,0,0,0.4);
    }

    /* Стили для капчи */
    .captcha-container {
      margin: 20px 0;
    }

    .captcha-slider {
      position: relative;
      width: 100%;
      height: 39px;
      background: rgba(20, 12, 6, 0.7);
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 
        inset 0 1px 2px rgba(0,0,0,0.5),
        0 1px 1px rgba(255,255,255,0.05);
      border: 1px solid var(--border);
    }

    .slider-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .captcha-text {
      color: var(--text-dark);
      font-size: 13px;
      text-align: center;
      z-index: 1;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .slider-progress {
      position: absolute;
      top: 3px;
      left: 3px;
      height: 31px;
      width: 0;
      background: linear-gradient(90deg, 
        rgba(225, 183, 108, 0.3), 
        rgba(225, 183, 108, 0.3));
      border-radius: 16px;
      transition: all 0.3s ease;
    }

    .slider-track {
      position: absolute;
      top: 3px;
      left: 3px;
      width: 32px;
      height: 32px;
      background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
      border-radius: 50%;
      box-shadow: 
        0 2px 8px rgba(0,0,0,0.5),
        inset 0 1px 1px rgba(255,255,255,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 15px;
      color: var(--blood);
      transition: all 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
      cursor: grab;
      user-select: none;
      -webkit-user-select: none;
      z-index: 2;
    }

    .slider-track.completed {
      background: #81C784;
      left: auto !important;
      right: 3px !important;
      transform: none !important;
    }

    .captcha-slider.completed .slider-progress {
      background: rgba(129, 199, 132, 0.6);
    }

    .captcha-slider.completed .captcha-text {
      color: #81C784;
      font-weight: bold;
    }

    .slider-track:active {
      cursor: grabbing;
      transform: scale(1.1);
    }

    /* Стили для кнопки */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 12px 24px;
      background: linear-gradient(to bottom, #5a0a0a, #3a0505);
      color: var(--text);
      border: none;
      border-radius: 7px;
      font-size: 15px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      text-decoration: none;
      min-width: 180px;
      position: relative;
      overflow: hidden;
      box-shadow: 
        0 3px 5px rgba(0,0,0,0.4),
        inset 0 1px 1px rgba(255,255,255,0.1);
      z-index: 2;
      width: 100%;
      margin-top: 15px;
      border: 1px solid rgba(74, 51, 37, 0.3);
    }

    .btn i {
      margin-right: 12px;
      font-size: 15px;
      transition: transform 0.3s ease;
    }

    .btn::before {
      content: "";
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.2), 
        transparent);
      transition: all 0.6s ease;
    }

    .btn:hover {
      background: linear-gradient(to bottom, #6a0a0a, #4a0505);
      color: var(--text);
      transform: translateY(-2px);
      box-shadow: 
        0 5px 10px rgba(0,0,0,0.5),
        inset 0 1px 1px rgba(255,255,255,0.15);
    }

    .btn:hover::before {
      left: 100%;
    }

    .btn:hover i {
      transform: scale(1.1);
    }

    .btn:active {
      transform: translateY(1px);
      box-shadow: 
        0 2px 3px rgba(0,0,0,0.4),
        inset 0 1px 1px rgba(0,0,0,0.1);
    }

    .btn.loading {
      pointer-events: none;
    }

    .btn .loading {
      animation: spin 1s linear infinite;
      margin-right: 8px;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .btn:disabled {
      opacity: 0.7;
      cursor: not-allowed;
      transform: none !important;
      background: linear-gradient(145deg, #4a4a4a, #2a2a2a);
      color: var(--text-dark);
      box-shadow: none;
    }

    .btn:disabled:hover::before {
      left: -100%;
    }

    .verification-container.error .btn {
      background: linear-gradient(145deg, #7a0a0a, #5a0505);
      color: var(--text);
    }

    .verification-container.error .btn:hover {
      background: linear-gradient(145deg, #8a0a0a, #6a0505);
    }

    /* Адаптация для мобильных устройств */
    @media (max-width: 576px) {
      body {
        padding: 10px;
        align-items: flex-start;
      }
      
    .verification-container {
  position: relative;
  padding-top: 40px; /* Даем место для кнопки */
}
      
    .home-btn {
  position: absolute;
  top: 5px;
  left: 10px;
  z-index: 100;
  transform: scale(0.9); /* Чуть уменьшаем размер */
}
      
      .status-icon {
        font-size: 48px;
        margin-bottom: 20px;
      }
      
      .status-message {
        font-size: 20px;
        margin-bottom: 12px;
        padding-top: 0;
      }
      
      .status-description {
        font-size: 14px;
        margin-bottom: 24px;
        padding: 0 5px;
      }
      
      .btn {
        padding: 10px 20px;
        font-size: 14px;
      }
      
      .captcha-slider {
        height: 38px;
      }
      
      .slider-track {
        width: 30px;
        height: 30px;
        top: 2px;
      }
      
      .slider-progress {
        height: 30px;
        border-radius: 15px;
      }
    }

    @media (max-height: 700px) and (min-width: 577px) {
      .verification-container {
        padding: 30px;
        margin-top: 40px;
      }
      
      .status-icon {
        font-size: 56px;
        margin-bottom: 20px;
      }
      
      .status-message {
        font-size: 22px;
        margin-bottom: 12px;
      }
      
      .status-description {
        margin-bottom: 24px;
      }
    }