/* === USER DROPDOWN (NAVBAR) === */
.user-dropdown-container {
    position: relative;
    display: inline-block;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    min-width: 260px;
    max-width: 320px;
    width: max-content;
    box-sizing: border-box;
    padding: 8px 0;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.user-dropdown-container.active .user-dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.user-dropdown-item {
    padding: 12px 20px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.user-dropdown-item.login-btn {
    color: #3b82f6; /* Blue text for login */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
    padding-bottom: 16px;
}

.user-dropdown-item.login-btn:hover {
    color: #60a5fa;
    background: transparent;
}

/* === NOTIFICATION BELL (NAVBAR) === */
.notif-bell-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notif-bell-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.notif-bell-btn:hover {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.4);
    color: #a78bfa;
    transform: scale(1.08);
}

.notif-bell-icon {
    width: 18px;
    height: 18px;
}

.notif-bell-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1.5px solid #0a0a12;
    line-height: 1;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
    animation: notifBadgePulse 2s ease-in-out infinite;
}

@keyframes notifBadgePulse {
    0%, 100% { box-shadow: 0 0 4px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.7); }
}

.notif-bell-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -40px;
    width: 340px;
    max-height: 420px;
    background: rgba(18, 18, 30, 0.97);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10001;
    overflow: hidden;
}

.notif-bell-container.active .notif-bell-dropdown {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.notif-bell-dropdown-header {
    padding: 14px 18px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    font-weight: 700;
    color: #a78bfa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.notif-bell-dropdown .fintop-notifications-list {
    overflow-y: auto;
    max-height: 360px;
    padding: 6px 8px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.3) transparent;
}

.notif-bell-dropdown .fintop-notifications-list::-webkit-scrollbar {
    width: 5px;
}

.notif-bell-dropdown .fintop-notifications-list::-webkit-scrollbar-track {
    background: transparent;
}

.notif-bell-dropdown .fintop-notifications-list::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 10px;
}

.notif-bell-dropdown .fintop-notif-item {
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.notif-bell-dropdown .fintop-notif-item:hover {
    background: rgba(168, 85, 247, 0.08) !important;
}


/* === AUTH MODAL DESIGN TOKENS === */
:root {
    --auth-surface: #11141c;
    --auth-panel: #171c26;
    --auth-panel-strong: #202838;
    --auth-ink: #f7fafc;
    --auth-muted: #a8b3c7;
    --auth-line: rgba(148, 163, 184, 0.24);
    --auth-line-strong: rgba(167, 139, 250, 0.42);
    --auth-accent: #8b5cf6;
    --auth-accent-strong: #c4b5fd;
    --auth-accent-soft: rgba(139, 92, 246, 0.16);
    --auth-blue: #ddd6fe;
    --auth-button: #8b5cf6;
    --auth-button-hover: #a78bfa;
    --auth-button-soft: rgba(139, 92, 246, 0.16);
    --auth-danger: #fb7185;
    --auth-danger-soft: rgba(251, 113, 133, 0.12);
    --auth-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

/* === AUTH MODAL OVERLAY === */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 7, 15, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
}

.auth-modal-overlay.active {
    display: flex;
    animation: authFadeIn 0.22s ease-out forwards;
}

/* === AUTH CHOICE GATE === */
.auth-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 7, 15, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
}

.auth-gate-overlay.active {
    display: flex;
    animation: authFadeIn 0.22s ease-out forwards;
}

.auth-gate-dialog {
    position: relative;
    width: min(500px, calc(100vw - 48px));
    padding: 38px;
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, 0.42);
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.2), transparent 46%),
        linear-gradient(145deg, rgba(25, 29, 42, 0.99), rgba(10, 12, 20, 0.99));
    box-shadow: var(--auth-shadow), 0 0 42px rgba(139, 92, 246, 0.12);
    color: var(--auth-ink);
    text-align: center;
    transform: translateY(12px) scale(0.98);
}

.auth-gate-overlay.active .auth-gate-dialog {
    animation: authContainerIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-gate-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--auth-line);
    border-radius: 50%;
    background: rgba(15, 18, 26, 0.78);
    color: var(--auth-muted);
    cursor: pointer;
    font: inherit;
    font-size: 1.2rem;
    transition: 0.2s ease;
}

.auth-gate-close:hover {
    border-color: var(--auth-line-strong);
    background: var(--auth-accent-soft);
    color: var(--auth-ink);
}

.auth-gate-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border: 1px solid var(--auth-line-strong);
    border-radius: 16px;
    background: var(--auth-accent-soft);
    color: var(--auth-accent-strong);
    font-size: 1.55rem;
    box-shadow: inset 0 0 22px rgba(139, 92, 246, 0.14);
}

.auth-gate-kicker {
    margin-bottom: 10px;
    color: var(--auth-accent-strong);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.auth-gate-dialog h2 {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    line-height: 1.25;
}

.auth-gate-dialog p {
    max-width: 390px;
    margin: 12px auto 24px;
    color: var(--auth-muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

.auth-gate-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.auth-gate-action,
.auth-gate-back {
    min-height: 46px;
    border-radius: 10px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-gate-action:hover,
.auth-gate-back:hover {
    transform: translateY(-2px);
}

.auth-gate-action.primary {
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--auth-accent), #6d3bdf);
    color: #fff;
    box-shadow: 0 12px 26px rgba(139, 92, 246, 0.28);
}

.auth-gate-action.secondary {
    border: 1px solid var(--auth-line-strong);
    background: var(--auth-accent-soft);
    color: var(--auth-accent-strong);
}

.auth-gate-back {
    width: 100%;
    margin-top: 12px;
    border: 1px solid var(--auth-line);
    background: rgba(255, 255, 255, 0.035);
    color: var(--auth-muted);
}

.auth-gate-back:hover {
    border-color: var(--auth-line-strong);
    color: var(--auth-ink);
}

.auth-modal-container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(520px, 1.25fr);
    grid-template-rows: 1fr;
    width: min(1120px, calc(100vw - 48px));
    height: 700px;
    min-height: 560px;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(22, 26, 36, 0.98), rgba(11, 13, 20, 0.98));
    box-shadow: var(--auth-shadow);
    transform: translateY(12px) scale(0.98);
}

.auth-modal-overlay.active .auth-modal-container {
    animation: authContainerIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.btn-close-auth {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 50%;
    background: rgba(15, 18, 26, 0.78);
    color: var(--auth-muted);
    cursor: pointer;
    font-size: 1.45rem;
    line-height: 1;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-close-auth:hover {
    border-color: rgba(167, 139, 250, 0.45);
    background: rgba(139, 92, 246, 0.14);
    color: var(--auth-ink);
    transform: translateY(-1px);
}

/* === LEFT SIDE === */
.auth-modal-left {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 42px;
    background: radial-gradient(circle at 24% 18%, rgba(139, 92, 246, 0.16), transparent 34%),
        radial-gradient(circle at 82% 76%, rgba(167, 139, 250, 0.14), transparent 32%),
        #0b0e17;
}

.auth-modal-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 18, 0.2), rgba(8, 10, 18, 0.72)),
        linear-gradient(90deg, rgba(8, 10, 18, 0.15), rgba(8, 10, 18, 0.48));
}

.auth-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    filter: saturate(0.95) contrast(1.06) brightness(0.78);
}

.auth-hero-content {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    max-width: min(100%, 460px);
}

.auth-brand-mark {
    display: block;
    margin-bottom: 14px;
    color: var(--auth-accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-hero-content h2 {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(1.85rem, 2.8vw, 2.15rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
    white-space: nowrap;
}

/* === RIGHT SIDE === */
.auth-modal-right {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 42px;
    background: var(--auth-surface);
}

.auth-modal-right::-webkit-scrollbar {
    width: 8px;
}

.auth-modal-right::-webkit-scrollbar-track {
    background: transparent;
}

.auth-modal-right::-webkit-scrollbar-thumb {
    border: 2px solid var(--auth-surface);
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.42);
}

.auth-form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.auth-logo-header {
    margin-bottom: 28px;
    color: var(--auth-ink);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
}

.auth-forms-wrapper {
    position: relative;
    width: 100%;
}

.auth-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(18px);
    transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s ease;
}

.auth-form.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.auth-form.slide-left {
    transform: translateX(-18px);
}

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

.auth-eyebrow {
    margin: 0 0 7px;
    color: var(--auth-accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-title {
    margin: 0;
    color: var(--auth-ink);
    font-size: 1.72rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0;
}

.auth-grid {
    display: grid;
    gap: 14px;
}

.auth-grid.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-input-group {
    position: relative;
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    margin-bottom: 7px;
    color: #d7deea;
    font-size: 0.86rem;
    font-weight: 700;
}

.auth-label span,
.auth-choice-group legend span {
    color: var(--auth-danger);
}

.auth-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--auth-ink);
    font-size: 0.96rem;
    outline: none;
    padding: 11px 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-input::placeholder {
    color: rgba(168, 179, 199, 0.72);
}

.auth-input:focus {
    border-color: var(--auth-accent);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px var(--auth-accent-soft);
}

.auth-input[aria-invalid="true"] {
    border-color: var(--auth-danger);
    box-shadow: 0 0 0 4px var(--auth-danger-soft);
}

.auth-input:disabled,
.auth-choice-group input:disabled + span {
    cursor: not-allowed;
    opacity: 0.72;
}

.password-toggle {
    position: absolute;
    top: 34px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background 0.18s ease, color 0.18s ease;
}

.password-toggle:hover {
    background: var(--auth-panel);
    color: var(--auth-ink);
}

.auth-input-group:has(.password-toggle) .auth-input {
    padding-right: 48px;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 4px 0 22px;
    color: var(--auth-muted);
    font-size: 0.88rem;
}

.auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-muted);
    cursor: pointer;
}

.auth-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-accent);
}

.auth-link {
    border: none;
    background: transparent;
    color: var(--auth-accent-strong);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--auth-blue);
    text-decoration: underline;
}

.auth-text-button {
    padding: 0;
}

.auth-btn-submit,
.auth-btn-secondary,
.auth-inline-btn {
    min-height: 46px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.auth-btn-submit {
    width: 100%;
    border: 1px solid var(--auth-button);
    background: var(--auth-button);
    color: #fff;
    box-shadow: 0 14px 28px rgba(139, 92, 246, 0.26);
}

.auth-btn-submit:hover {
    background: var(--auth-button-hover);
    border-color: var(--auth-button-hover);
    box-shadow: 0 16px 30px rgba(167, 139, 250, 0.28);
}

.auth-btn-secondary {
    width: 100%;
    border: 1px solid rgba(139, 92, 246, 0.34);
    background: rgba(139, 92, 246, 0.08);
    color: #ddd6fe;
}

.auth-btn-secondary:hover {
    border-color: var(--auth-button-hover);
    background: var(--auth-button-soft);
}

.auth-inline-btn {
    flex: 0 0 auto;
    border: 1px solid rgba(139, 92, 246, 0.34);
    background: rgba(139, 92, 246, 0.08);
    color: #ddd6fe;
    padding: 0 14px;
    box-shadow: none;
}

.auth-inline-btn:hover {
    border-color: var(--auth-button-hover);
    background: var(--auth-button-soft);
    color: var(--auth-button-hover);
}

.auth-btn-submit:active,
.auth-btn-secondary:active,
.auth-inline-btn:active {
    transform: translateY(1px);
}

.auth-btn-submit:disabled,
.auth-btn-secondary:disabled,
.auth-inline-btn:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
    box-shadow: none;
}

.auth-footer {
    margin-top: 24px;
    color: var(--auth-muted);
    font-size: 0.9rem;
    text-align: center;
}

.auth-footer.compact {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* === REGISTER STEPPER === */
.register-stepper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 24px;
    padding-top: 8px;
}

.register-progress-track {
    position: absolute;
    top: 24px;
    left: calc(16.666% + 18px);
    right: calc(16.666% + 18px);
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}

.register-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--auth-accent);
    transition: width 0.25s ease;
}

.register-step {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
}

.register-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--auth-line);
    border-radius: 50%;
    background: var(--auth-panel);
    color: var(--auth-muted);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.register-step.is-active .register-step-index {
    border-color: var(--auth-accent);
    background: var(--auth-accent);
    color: #ffffff;
    box-shadow: 0 0 0 5px var(--auth-accent-soft);
}

.register-step.is-complete .register-step-index {
    border-color: var(--auth-accent);
    background: var(--auth-accent-soft);
    color: var(--auth-accent-strong);
}

.register-step.is-active,
.register-step.is-complete {
    color: var(--auth-ink);
}

.register-step-panels {
    overflow: hidden;
}

.register-step-panel {
    display: none;
}

.register-step-panel.is-active {
    display: block;
    animation: authPanelIn 0.24s ease;
}

.auth-choice-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.auth-choice-group legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    color: #d7deea;
    font-size: 0.86rem;
    font-weight: 800;
}

.auth-choice-group label {
    display: block;
    min-width: 0;
}

.auth-choice-group input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-choice-group span {
    display: flex;
    align-items: center;
    min-height: 42px;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--auth-ink);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 10px 12px;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.auth-choice-group input:checked + span {
    border-color: var(--auth-accent);
    background: var(--auth-accent-soft);
    color: var(--auth-accent-strong);
}

.auth-choice-group[aria-invalid="true"] span {
    border-color: rgba(220, 38, 38, 0.55);
}

.auth-choice-group input:focus-visible + span {
    box-shadow: 0 0 0 4px var(--auth-accent-soft);
}

.auth-conditional-field {
    animation: authPanelIn 0.2s ease;
}

.auth-field-error {
    min-height: 17px;
    margin: 5px 0 0;
    color: var(--auth-danger);
    font-size: 0.78rem;
    line-height: 1.25;
}

.auth-field-error.is-visible::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--auth-danger-soft);
    color: var(--auth-danger);
    font-size: 0.7rem;
    font-weight: 900;
}

.auth-input-with-action {
    display: flex;
    gap: 10px;
}

.auth-otp-input {
    text-align: center;
    font-weight: 800;
    letter-spacing: 0;
}

.auth-status-note {
    margin: 2px 0 16px;
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 10px;
    background: var(--auth-accent-soft);
    color: var(--auth-accent-strong);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.45;
    padding: 10px 12px;
}

.auth-status-note[data-status="error"] {
    border-color: rgba(220, 38, 38, 0.26);
    background: var(--auth-danger-soft);
    color: var(--auth-danger);
}

.password-strength {
    display: grid;
    gap: 7px;
    margin-top: 9px;
}

.password-strength-track {
    display: block;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}

.password-strength-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #ef4444;
    transition: width 0.2s ease, background 0.2s ease;
}

.password-strength-label {
    color: var(--auth-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.password-strength[data-strength="medium"] .password-strength-track span {
    background: #d97706;
}

.password-strength[data-strength="strong"] .password-strength-track span {
    background: var(--auth-accent);
}

.register-actions {
    display: grid;
    grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.register-actions .auth-btn-submit[hidden],
.register-actions .auth-btn-secondary[hidden] {
    display: none;
}

.register-success {
    padding: 56px 10px 24px;
    text-align: center;
}

.register-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--auth-accent-soft);
    color: var(--auth-accent-strong);
    font-size: 2rem;
    font-weight: 900;
}

.register-success-copy {
    margin: 12px auto 24px;
    max-width: 360px;
    color: var(--auth-muted);
    line-height: 1.6;
}

@keyframes authFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes authPanelIn {
    from {
        opacity: 0;
        transform: translateX(14px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === RESPONSIVE === */
@media (max-width: 980px) {
    .auth-modal-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        width: min(680px, calc(100vw - 32px));
        height: 680px;
        min-height: 0;
        max-height: calc(100vh - 32px);
    }

    .auth-modal-left {
        min-height: 144px;
        padding: 28px 34px;
    }

    .auth-hero-content {
        align-self: center;
    }

    .auth-hero-content h2 {
        font-size: 1.58rem;
        white-space: normal;
    }

    .auth-modal-right {
        padding: 34px;
    }
}

@media (max-width: 640px) {
    .auth-gate-overlay {
        padding: 16px;
    }

    .auth-gate-dialog {
        width: min(100%, 440px);
        padding: 34px 20px 22px;
        border-radius: 16px;
    }

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

    .auth-modal-overlay {
        padding: 0;
        align-items: stretch;
    }

    .auth-modal-container {
        width: 100%;
        height: 100%;
        min-height: 100%;
        max-height: 100vh;
        border: 0;
        border-radius: 0;
        grid-template-rows: 1fr;
    }

    .auth-modal-left {
        display: none;
    }

    .auth-modal-right {
        padding: 28px 20px;
    }

    .auth-logo-header {
        margin-right: 44px;
        margin-bottom: 24px;
    }

    .auth-title {
        font-size: 1.45rem;
    }

    .auth-grid.two-cols,
    .auth-choice-group {
        grid-template-columns: 1fr;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .register-step-label {
        display: none;
    }

    .register-progress-track {
        left: calc(16.666% + 15px);
        right: calc(16.666% + 15px);
    }

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

    .auth-input-with-action {
        flex-direction: column;
    }

    .auth-inline-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-gate-overlay.active,
    .auth-gate-overlay.active .auth-gate-dialog,
    .auth-modal-overlay.active,
    .auth-modal-overlay.active .auth-modal-container,
    .register-step-panel.is-active {
        animation: none;
    }

    .auth-form,
    .auth-input,
    .register-progress-fill,
    .password-strength-track span {
        transition: none;
    }
}
