.hidden {
            display: none !important;
        }

        .auth-modal {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: rgba(10, 14, 28, 0.72);
            backdrop-filter: blur(10px);
        }

        .auth-modal__card {
            position: relative;
            width: min(100%, 520px);
            max-height: calc(100vh - 48px);
            overflow-y: auto;
            padding: 34px;
            border-radius: 28px;
            background:
                radial-gradient(circle at top left, rgba(113, 91, 255, 0.18), transparent 34%),
                linear-gradient(180deg, #ffffff 0%, #f8f6ff 100%);
            box-shadow: 0 28px 90px rgba(22, 18, 55, 0.3);
            color: #201b3d;
        }

        .auth-modal__card--small {
            max-width: 440px;
        }

        .auth-modal__close {
            position: absolute;
            top: 16px;
            right: 18px;
            width: 36px;
            height: 36px;
            border: 0;
            border-radius: 50%;
            background: rgba(74, 57, 145, 0.08);
            color: #3a315f;
            font-size: 28px;
            line-height: 1;
            cursor: pointer;
        }

        .auth-modal__title {
            margin: 0;
            font-size: 32px;
            line-height: 1.1;
            font-weight: 800;
            color: #241b4f;
        }

        .auth-modal__subtitle {
            margin: 8px 0 22px;
            color: #6f6a8c;
            font-size: 15px;
            line-height: 1.5;
        }

        .auth-tabs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            padding: 6px;
            margin-bottom: 22px;
            border-radius: 18px;
            background: #eee9ff;
        }

        .auth-tab {
            border: 0;
            border-radius: 14px;
            padding: 13px 14px;
            background: transparent;
            color: #655d87;
            font-weight: 800;
            cursor: pointer;
            transition: 0.2s ease;
        }

        .auth-tab.active {
            background: #ffffff;
            color: #4d369e;
            box-shadow: 0 10px 24px rgba(77, 54, 158, 0.14);
        }

        .auth-form {
            display: none;
        }

        .auth-form.active {
            display: block;
        }

        .auth-field {
            margin-bottom: 16px;
        }

        .auth-field label,
        .auth-group__title {
            display: block;
            margin-bottom: 8px;
            font-size: 13px;
            font-weight: 800;
            color: #332b5f;
        }

        .auth-field input,
        .auth-field textarea {
            width: 100%;
            min-height: 48px;
            padding: 0 15px;
            border: 1px solid rgba(77, 54, 158, 0.18);
            border-radius: 15px;
            background: #ffffff;
            color: #241b4f;
            font-size: 15px;
            outline: none;
            transition: 0.2s ease;
            box-sizing: border-box;
        }

        .auth-field input:focus {
            border-color: #7a61d4;
            box-shadow: 0 0 0 4px rgba(122, 97, 212, 0.14);
        }

        .auth-password {
            display: flex;
            gap: 8px;
        }

        .auth-password input {
            flex: 1;
        }

        .toggle-password {
            min-width: 68px;
            border: 0;
            border-radius: 14px;
            background: #eee9ff;
            color: #4d369e;
            font-weight: 800;
            cursor: pointer;
            height: 48px;
        }

        .auth-submit {
            width: 100%;
            min-height: 50px;
            border: 0;
            border-radius: 16px;
            background: linear-gradient(135deg, #7a61d4, #4d369e);
            color: #ffffff;
            font-size: 15px;
            font-weight: 900;
            cursor: pointer;
            transition: 0.2s ease;
        }

        .auth-submit:hover {
            transform: translateY(-1px);
            box-shadow: 0 14px 34px rgba(77, 54, 158, 0.28);
        }

        .auth-submit--secondary {
            background: #eee9ff;
            color: #4d369e;
            box-shadow: none;
        }

        .auth-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
            margin-top: 16px;
            font-size: 14px;
            color: #6f6a8c;
        }

        .auth-links a,
        .auth-option a {
            color: #4d369e;
            font-weight: 800;
            text-decoration: none;
        }

        .auth-group {
            margin-bottom: 18px;
        }

        .auth-option {
            display: flex;
            align-items: center;
            gap: 10px;
            min-height: 44px;
            padding: 11px 13px;
            margin-bottom: 8px;
            border: 1px solid rgba(77, 54, 158, 0.14);
            border-radius: 14px;
            background: #ffffff;
            color: #332b5f;
            font-size: 14px;
            cursor: pointer;
            box-sizing: border-box;
        }

        .auth-option input {
            accent-color: #6f55ca;
        }

        .auth-option--terms {
            align-items: flex-start;
        }

        .auth-actions {
            display: grid;
            grid-template-columns: 0.8fr 1.2fr;
            gap: 10px;
            margin-top: 18px;
        }

        .social-group {
            position: relative;
        }

        .social-input {
            display: grid;
            grid-template-columns: 132px 1fr;
            gap: 8px;
        }

        .social-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 48px;
            padding: 0 13px;
            border: 1px solid rgba(77, 54, 158, 0.18);
            border-radius: 15px;
            background: #ffffff;
            color: #4d369e;
            font-weight: 800;
            cursor: pointer;
        }

        .social-options {
            position: absolute;
            z-index: 5;
            top: calc(100% + 4px);
            left: 0;
            width: 180px;
            display: none;
            padding: 8px;
            margin: 0;
            list-style: none;
            border-radius: 16px;
            background: #ffffff;
            box-shadow: 0 18px 44px rgba(22, 18, 55, 0.18);
        }

        .social-options.visible {
            display: block;
        }

        .social-options li {
            padding: 10px 12px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 700;
            color: #332b5f;
        }

        .social-options li:hover {
            background: #f2edff;
        }


        .social-input {
            align-items: stretch;
        }

        .social-input .social-toggle,
        .social-input input {
            height: 52px;
            min-height: 52px;
            box-sizing: border-box;
        }

        .social-input input {
            padding-top: 0;
            padding-bottom: 0;
        }

        .auth-captcha {
            margin-top: 18px;
            margin-bottom: 18px;
        }

        .auth-captcha .g-recaptcha {
            transform-origin: left top;
        }

        .error-message {
            margin-top: 6px;
            color: #d93025;
            font-size: 12px;
            font-weight: 800;
        }

        .has-error,
        .auth-field input.has-error,
        .auth-option.has-error {
            border-color: #d93025 !important;
        }

        @media (max-width: 560px) {
            .auth-modal {
                padding: 14px;
                align-items: flex-end;
            }

            .auth-modal__card {
                width: 100%;
                padding: 28px 20px 22px;
                border-radius: 26px 26px 0 0;
                max-height: calc(100vh - 28px);
            }

            .auth-modal__title {
                font-size: 28px;
            }

            .social-input {
                grid-template-columns: 1fr;
            }

            .social-input .social-toggle,
            .social-input input {
                height: 52px;
                min-height: 52px;
            }

            .social-options {
                width: 100%;
            }

            .auth-actions {
                grid-template-columns: 1fr;
            }


            .auth-captcha .g-recaptcha {
                transform: scale(0.92);
            }
        }
        /* =========================================================
   AUTH MODAL STEP 2 — FINAL STYLE FIX
========================================================= */

.auth-group {
  margin-bottom: 22px;
}

.auth-group__title {
  display: block;
  grid-column: 1 / -1;
  margin: 0 0 12px;
  color: #241b4f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.traffic-group,
.howfound-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 10px;
}

.traffic-group .auth-option,
.howfound-group .auth-option,
.auth-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  margin: 0;
  border: 1px solid rgba(77, 54, 158, 0.16);
  border-radius: 16px;
  background: #ffffff;
  color: #241b4f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.auth-option:hover {
  border-color: rgba(122, 97, 212, 0.45);
  box-shadow: 0 10px 24px rgba(77, 54, 158, 0.08);
}

.auth-option span {
  display: block;
  color: #241b4f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.auth-option input[type="checkbox"],
.auth-option input[type="radio"] {
  flex: 0 0 auto;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1.5px solid rgba(77, 54, 158, 0.35);
  background: #ffffff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none !important;
  outline: none;
}

.auth-option input[type="checkbox"] {
  border-radius: 6px;
}

.auth-option input[type="radio"] {
  border-radius: 50%;
}

.auth-option input[type="checkbox"]:checked {
  border-color: #6f55ca;
  background-color: #6f55ca;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='11' viewBox='0 0 14 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 5.5L5.2 9L12.5 1.5' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 10px;
}

.auth-option input[type="radio"]:checked {
  border: 6px solid #6f55ca;
  background: #ffffff;
}

.auth-option:has(input:checked) {
  border-color: rgba(111, 85, 202, 0.5);
  background: #f7f3ff;
  box-shadow: 0 10px 24px rgba(77, 54, 158, 0.1);
}

#trafficOtherWrap,
#howFoundOtherWrap {
  grid-column: 1 / -1;
  margin: 0 0 4px;
}

#trafficOtherWrap label,
#howFoundOtherWrap label {
  display: block;
  margin: 0 0 8px;
  color: #241b4f;
  font-size: 13px;
  font-weight: 800;
}

#trafficOtherWrap input,
#howFoundOtherWrap input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(77, 54, 158, 0.18);
  border-radius: 15px;
  background: #ffffff;
  color: #241b4f;
  font-size: 15px;
  outline: none;
}

#trafficOtherWrap input:focus,
#howFoundOtherWrap input:focus {
  border-color: #7a61d4;
  box-shadow: 0 0 0 4px rgba(122, 97, 212, 0.14);
}

.promo-group {
  width: 100%;
  margin-bottom: 16px;
}

.checkbox-terms {
  width: 100%;
  margin-bottom: 16px;
}

.checkbox-terms .auth-option {
  align-items: flex-start;
  min-height: auto;
}

.checkbox-terms .auth-option span {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.checkbox-terms .auth-option a {
  color: #4d369e;
  font-weight: 800;
  text-decoration: none;
}

.checkbox-terms .auth-option a:hover {
  text-decoration: underline;
}

.auth-captcha {
  width: 100%;
  margin: 18px 0;
}

.auth-captcha-note {
  padding: 14px 16px;
  border: 1px solid rgba(77, 54, 158, 0.16);
  border-radius: 16px;
  background: #f7f3ff;
  color: #5f5784;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.auth-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
}

.traffic-group > .error-message,
.howfound-group > .error-message {
  grid-column: 1 / -1;
}

.error-message {
  margin-top: 6px;
  color: #d93025;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.auth-option.has-error,
.auth-group.has-error .auth-option {
  border-color: #d93025;
}

.auth-option.has-error input,
.auth-group.has-error input[type="checkbox"],
.auth-group.has-error input[type="radio"] {
  border-color: #d93025;
}

.hidden {
  display: none !important;
}

@media (max-width: 560px) {
  .traffic-group,
  .howfound-group {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .traffic-group .auth-group__title,
  .howfound-group .auth-group__title {
    grid-column: 1;
    font-size: 14px;
  }

  .traffic-group .auth-option,
  .howfound-group .auth-option,
  .auth-option {
    min-height: 54px;
    padding: 13px 14px;
    border-radius: 14px;
  }

  .auth-option span {
    font-size: 14px;
  }

  #trafficOtherWrap,
  #howFoundOtherWrap {
    grid-column: 1;
  }

  .auth-actions {
    grid-template-columns: 1fr;
  }
}