/* ===== GlobalModal ===== */
#gm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#gm-overlay.gm-visible {
    display: flex;
    animation: gm-fade-in .15s ease;
}

@keyframes gm-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.gm-dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    min-width: 320px;
    max-width: 480px;
    width: 90%;
    animation: gm-slide-up .15s ease;
    overflow: hidden;
}

@keyframes gm-slide-up {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ¦â±m¥DÃD */
.gm-dialog.gm-type-info    .gm-header { background: #e8f4fd; border-bottom: 2px solid #3498db; }
.gm-dialog.gm-type-success .gm-header { background: #eafaf1; border-bottom: 2px solid #2ecc71; }
.gm-dialog.gm-type-warning .gm-header { background: #fef9e7; border-bottom: 2px solid #f39c12; }
.gm-dialog.gm-type-danger  .gm-header { background: #fdedec; border-bottom: 2px solid #e74c3c; }

.gm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
}

#gm-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

#gm-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 0 4px;
}
#gm-close-btn:hover { color: #333; }

.gm-body {
    padding: 20px 18px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    min-height: 48px;
}

.gm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.gm-footer button {
    padding: 8px 22px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: opacity .15s;
}
.gm-footer button:hover { opacity: .85; }

#gm-confirm-btn {
    background: #3498db;
    color: #fff;
}
.gm-type-danger  #gm-confirm-btn { background: #e74c3c; }
.gm-type-success #gm-confirm-btn { background: #2ecc71; }
.gm-type-warning #gm-confirm-btn { background: #f39c12; }

#gm-cancel-btn {
    background: #ecf0f1;
    color: #555;
}