.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 12, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.modal-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: #111418;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    margin: 20px;
    box-sizing: border-box;
    position: relative;
    transform: translateY(16px);
    transition: transform 0.25s ease;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
    overflow: hidden;
}
.modal-backdrop.open .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 24px 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.modal-logo { display: flex; align-items: center; gap: 8px; }
.modal-logo img { height: 22px; }

.modal-steps { display: flex; gap: 5px; }
.modal-step-dot {
    height: 3px;
    width: 28px;
    border-radius: 2px;
    background: rgba(255,255,255,0.1);
    transition: background 0.3s;
}
.modal-step-dot.active { background: rgb(151, 252, 228); }

.modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
    flex-shrink: 0;
}
.modal-close:hover { color: rgba(255,255,255,0.8); }

.modal-body { padding: 24px 24px 0; }

.modal-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin-top: 24px;
}

.modal-title {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 12px;
}
.modal-subtitle {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
}

.modal-field { margin-bottom: 12px; }

.modal-label {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 7px;
    display: block;
}

.modal-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 13px 16px;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 15px;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.modal-input::placeholder { color: rgba(255,255,255,0.2); }
.modal-input:focus {
    border-color: rgba(151, 252, 228, 0.5);
    background: rgba(151, 252, 228, 0.04);
}
.modal-input.error {
    border-color: rgba(255, 90, 90, 0.6);
    background: rgba(255, 90, 90, 0.04);
}

.modal-error {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 12px;
    color: rgba(255, 100, 100, 0.85);
    margin-top: 5px;
    display: none;
}
.modal-error.visible { display: block; }

.modal-btn-primary {
    width: 100%;
    padding: 15px;
    background: rgb(151, 252, 228);
    border: none;
    border-radius: 10px;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: rgb(7, 39, 35);
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}
.modal-btn-primary:hover { opacity: 0.88; }
.modal-btn-primary:active { transform: scale(0.98); }

.modal-step { display: none; }
.modal-step.visible { display: block; }

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(151, 252, 228, 0.08);
    border: 1px solid rgba(151, 252, 228, 0.15);
    border-radius: 20px;
    padding: 4px 10px;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 12px;
    color: rgb(151, 252, 228);
    margin-bottom: 14px;
}
.modal-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgb(151, 252, 228);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.modal-info-list { list-style: none; padding: 0; margin: 0; }
.modal-info-list li {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.modal-info-list li:last-child { border-bottom: none; }
.modal-info-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgb(151, 252, 228);
    flex-shrink: 0;
    margin-top: 7px;
}

.modal-disclaimer {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}
.modal-disclaimer a {
    color: rgba(255,255,255,0.4);
    text-decoration: underline;
    text-underline-offset: 2px;
}
