.app-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.app-modal-overlay.active {
    display: flex;
}

.app-modal {
    width: min(460px, 100%);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.app-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border-bottom: 1px solid #dbe4ee;
}

.app-modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.app-modal-close {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
}

.app-modal-body {
    padding: 18px;
    color: #334155;
    line-height: 1.55;
    white-space: pre-line;
}

.app-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0 18px 18px;
}

.app-modal-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}
