/* استایل دکمه در هدر */
.gls-trigger-btn {
    cursor: pointer;
    font-weight: bold;
    padding: 8px 15px;
    color: #333;
    transition: 0.3s;
}
.gls-trigger-btn:hover { color: #007cba; }

/* پس‌زمینه تار (Glass Backdrop) */
#gls-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2147483647 !important; /* بالاترین عدد ممکن */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* باکس مودال شیشه‌ای */
.gls-modal-box {
    background: rgba(255, 255, 255, 0.85);
    width: 380px;
    max-width: 90%;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    text-align: center;
    font-family: inherit; /* ارث‌بری فونت قالب */
}

.gls-close {
    position: absolute;
    top: 10px; left: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.gls-step h3 { margin-bottom: 20px; font-size: 20px; }
.gls-step p { font-size: 14px; color: #555; margin-bottom: 15px; }

/* ورودی‌ها */
.gls-modal-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    background: rgba(255,255,255,0.9);
    border-bottom: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    text-align: center;
    font-size: 16px;
    transition: 0.3s;
}
.gls-modal-box input:focus { border-bottom-color: #007cba; }

/* دکمه‌ها */
.gls-modal-box button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: #333;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}
.gls-modal-box button:hover { background: #000; transform: translateY(-2px); }

/* لینک بازگشت و پیام‌ها */
.gls-back-link {
    display: block;
    margin-top: 15px;
    font-size: 12px;
    color: #888;
    cursor: pointer;
    text-decoration: underline;
}
.gls-msg { margin-top: 10px; font-size: 13px; color: #d63638; }