.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    direction: rtl;
    font-family: inherit;
}

.modal-box {
    position: relative;
    width: min(420px, 90vw);
    background: linear-gradient(180deg, #273048 0%, #171c27 100%);
    border-radius: 24px;
    padding: 24px 28px 28px;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
}

.modal-close {
    position: absolute;
    top: 14px;
    left: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.modal-header {
    text-align: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.modal-header h2 {
    text-align: right;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.modal-body {
    text-align: center;
}

.modal-label {
    display: block;
    text-align: center;
    color: #ffd54a;
    font-size: 13px;
    margin-bottom: 8px;
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 80, 0.6);
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 15px;
    text-align: center;
    margin-bottom: 18px;
}

.modal-input::placeholder {
    color: rgba(255,255,255,0.35);
}

.modal-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(90deg, #4286ff 0%, #0050ff 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.open-modal-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background: #f6b800;
    color: #000;
    font-weight: 600;
    cursor: pointer;
}
