:root {
      --text: #1a1a1a;
      --text-muted: #6e6e6e;
      --border: #e5e5e5;
      --primary: #111111;
      --primary-hover: #333333;
      --bg: #ffffff;
      --error-bg: #fff8e6;
      --error-text: #8a6d3b;
      --success: #0f9d58;
      --card-bg: #fafafa;
    }

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

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      padding: 40px 24px 80px;
    }

    .container {
      max-width: 620px;
      margin: 0 auto;
    }

    /* Branding */
    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 36px;
      animation: fadeIn 0.6s ease forwards;
    }

    .logo {
      width: 36px;
      height: 36px;
      flex-shrink: 0;
    }

    .brand-name {
      font-size: 17px;
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .brand-sub {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 1px;
    }

    h1 {
      font-size: 26px;
      font-weight: 700;
      letter-spacing: -0.03em;
      margin-bottom: 18px;
      animation: fadeInUp 0.5s ease 0.1s both;
    }

    .divider {
      height: 1px;
      background: var(--border);
      margin-bottom: 36px;
      animation: fadeIn 0.5s ease 0.15s both;
    }

    /* ========== STEPS ========== */
    .step {
      margin-bottom: 32px;
      opacity: 0.4;
      transition: opacity 0.4s ease;
    }

    .step.active {
      opacity: 1;
    }

    .step.completed {
      opacity: 0.85;
    }

    .step-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 6px;
    }

    .step-indicator {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #e5e5e5;
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
    }

    .step.active .step-indicator {
      background: var(--primary);
      color: white;
    }

    .step.completed .step-indicator {
      background: var(--success);
      color: white;
      font-size: 15px;
    }

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

    .step-indicator.loading {
      background: var(--primary);
      color: transparent;
    }

    .step-indicator.loading::after {
      content: "";
      position: absolute;
      width: 14px;
      height: 14px;
      border: 2.5px solid rgba(255, 255, 255, 0.25);
      border-top-color: #ffffff;
      border-radius: 50%;
      animation: spin 0.75s linear infinite;
    }

    .step-title {
      font-size: 17px;
      font-weight: 600;
    }

    .step-desc {
      font-size: 14.5px;
      color: var(--text-muted);
      margin-bottom: 16px;
      margin-left: 40px;
    }

    .help-link {
      font-size: 13.5px;
      color: #1473e6;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 18px;
      margin-left: 40px;
    }
    .help-link:hover { text-decoration: underline; }

    /* Form */
    .field {
      margin-bottom: 16px;
      max-width: 380px;
      margin-left: 40px;
    }

    .field label {
      display: block;
      font-size: 13px;
      font-weight: 500;
      margin-bottom: 6px;
    }

    .field input {
      width: 100%;
      height: 46px;
      padding: 0 14px;
      font-size: 15px;
      border: 1.5px solid #d0d0d0;
      border-radius: 8px;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .field input:focus {
      border-color: #111;
      box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
    }

    .field input.error {
      border-color: #e34850;
      animation: shake 0.4s ease;
    }

    .field-note {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 5px;
    }

    /* ========== BUTTON MICRO-INTERACTIONS ========== */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 44px;
      padding: 0 26px;
      font-size: 14.5px;
      font-weight: 600;
      color: white;
      background: var(--primary);
      border: none;
      border-radius: 8px;
      cursor: pointer;
      min-width: 130px;
      margin-top: 6px;
      margin-left: 40px;
      position: relative;
      transition: 
        transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
    }

    /* Hover */
    .btn:hover:not(:disabled) {
      background: var(--primary-hover);
      transform: translateY(-1px);
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    }

    /* Press / Active */
    .btn:active:not(:disabled) {
      transform: scale(0.97);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }

    /* Focus (Keyboard) */
    .btn:focus-visible {
      outline: 2px solid #1473e6;
      outline-offset: 3px;
    }

    /* Disabled */
    .btn:disabled {
      opacity: 0.55;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    /* Loading State */
    .btn.loading {
      color: transparent;
      pointer-events: none;
    }

    .btn.loading::after {
      content: "";
      position: absolute;
      width: 18px;
      height: 18px;
      border: 2.5px solid rgba(255, 255, 255, 0.25);
      border-top-color: #ffffff;
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
    }

    .error-box {
      display: none;
      background: var(--error-bg);
      color: var(--error-text);
      padding: 12px 16px;
      border-radius: 8px;
      font-size: 13.5px;
      margin-bottom: 18px;
      margin-left: 40px;
      max-width: 400px;
    }

    .error-box.show {
      display: block;
      animation: fadeIn 0.3s ease;
    }

    /* Success */
    .success-content {
      display: none;
      margin-left: 40px;
    }

    .success-content.show {
      display: block;
      animation: fadeInUp 0.5s ease;
    }

    .team-box {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 18px 20px;
      margin: 16px 0 24px;
      max-width: 400px;
    }

    .team-label {
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 4px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .team-name {
      font-size: 18px;
      font-weight: 600;
    }

    .instructions {
      margin-top: 6px;
    }

    .instructions ol {
      padding-left: 20px;
      margin-top: 12px;
    }

    .instructions li {
      margin-bottom: 9px;
      font-size: 14.5px;
      line-height: 1.5;
    }

    .note {
      font-size: 13.5px;
      color: var(--text-muted);
      margin-top: 20px;
      padding: 14px 16px;
      background: var(--card-bg);
      border-radius: 8px;
      max-width: 460px;
    }

    /* Footer */
    .footer {
      margin-top: 48px;
      padding-top: 24px;
      border-top: 1px solid var(--border);
      font-size: 12.5px;
      color: var(--text-muted);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }

    .footer-links {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .footer a {
      color: #1473e6;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .footer a:hover { text-decoration: underline; }

    .footer-brand {
      font-weight: 500;
      color: var(--text);
    }

    .ai-icon {
      width: 14px;
      height: 14px;
    }

    /* Animations */
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes shake {
      0%, 100% { transform: translateX(0); }
      25% { transform: translateX(-4px); }
      75% { transform: translateX(4px); }
    }

    @media (max-width: 520px) {
      body { padding: 28px 16px 60px; }
      h1 { font-size: 22px; }
      .field, .btn, .error-box, .success-content, .step-desc, .help-link {
        margin-left: 0;
      }
      .footer { flex-direction: column; align-items: flex-start; }
    }
.field .secondary{flex:0 0 auto;}
